mirror of
https://github.com/servo/servo
synced 2026-04-30 19:37:43 +02:00
Upgrade to rustc 1.39.0-nightly (9eae1fc0e 2019-08-23)
This commit is contained in:
@@ -30,12 +30,8 @@ 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().expn_info() {
|
||||
if let ExpnKind::Macro(MacroKind::Attr, n) = i.kind {
|
||||
n.as_str().contains("derive")
|
||||
} else {
|
||||
false
|
||||
}
|
||||
if let ExpnKind::Macro(MacroKind::Attr, n) = span.ctxt().outer_expn_data().kind {
|
||||
n.as_str().contains("derive")
|
||||
} else {
|
||||
false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user