From ed330c4463aa7621b6f198057213bd0adc889e82 Mon Sep 17 00:00:00 2001 From: klensy Date: Tue, 2 Mar 2021 22:01:29 +0300 Subject: [PATCH] use outer_expn_data() instead of outer_expn().expn_data() --- compiler/rustc_resolve/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_resolve/src/lib.rs b/compiler/rustc_resolve/src/lib.rs index e63fd4ce6357d..7aee718bfa962 100644 --- a/compiler/rustc_resolve/src/lib.rs +++ b/compiler/rustc_resolve/src/lib.rs @@ -1422,7 +1422,7 @@ impl<'a> Resolver<'a> { fn macro_def(&self, mut ctxt: SyntaxContext) -> DefId { loop { - match ctxt.outer_expn().expn_data().macro_def_id { + match ctxt.outer_expn_data().macro_def_id { Some(def_id) => return def_id, None => ctxt.remove_mark(), };