mirror of
https://github.com/servo/servo.git
synced 2025-06-10 17:43:16 +00:00
Upgrade to rustc 1.38.0-nightly (273f42b59 2019-07-21)
This commit is contained in:
parent
75275965f0
commit
58c5506415
2 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ pub fn match_def_path(cx: &LateContext, def_id: DefId, path: &[Symbol]) -> bool
|
|||
}
|
||||
|
||||
pub fn in_derive_expn(span: Span) -> bool {
|
||||
if let Some(i) = span.ctxt().outer().expn_info() {
|
||||
if let Some(i) = span.ctxt().outer_expn().expn_info() {
|
||||
if let ExpnKind::Macro(MacroKind::Attr, n) = i.kind {
|
||||
n.as_str().contains("derive")
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue