From a09899be99747018cd6622a7da59a1d3045f36bf Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Sun, 24 Jun 2018 12:22:28 +0200 Subject: Upgrade to rustc 1.29.0-nightly (e06c87544 2018-07-06) --- 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 9199e5b083b..92797f81430 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: &[&str]) -> bool { pub fn in_derive_expn(span: Span) -> bool { if let Some(i) = span.ctxt().outer().expn_info() { - if let ExpnFormat::MacroAttribute(n) = i.callee.format { + if let ExpnFormat::MacroAttribute(n) = i.format { n.as_str().contains("derive") } else { false -- cgit v1.2.3