From 58c55064154955167eff1713bf3bbe9b97ea1bcc Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 22 Jul 2019 09:35:43 +0200 Subject: Upgrade to rustc 1.38.0-nightly (273f42b59 2019-07-21) --- components/script_plugins/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script_plugins/utils.rs') diff --git a/components/script_plugins/utils.rs b/components/script_plugins/utils.rs index 0c22f224647..686b104daf6 100644 --- a/components/script_plugins/utils.rs +++ b/components/script_plugins/utils.rs @@ -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 { -- cgit v1.2.3