mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Upgrade to rustc 1.39.0-nightly (9eae1fc0e 2019-08-23)
This commit is contained in:
parent
6ff2524781
commit
714a5b4248
3 changed files with 4 additions and 13 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue