Rollup merge of #82706 - klensy:expn-data, r=petrochenkov

use outer_expn_data() instead of outer_expn().expn_data()

From the comment in hygiene.rs, so use it:
https://github.com/rust-lang/rust/blob/master/compiler/rustc_span/src/hygiene.rs#L627-L632
This commit is contained in:
Yuki Okushi 2021-03-03 16:27:45 +09:00 committed by GitHub
commit 651f53e517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1422,7 +1422,7 @@ impl<'a> Resolver<'a> {
fn macro_def(&self, mut ctxt: SyntaxContext) -> DefId { fn macro_def(&self, mut ctxt: SyntaxContext) -> DefId {
loop { loop {
match ctxt.outer_expn().expn_data().macro_def_id { match ctxt.outer_expn_data().macro_def_id {
Some(def_id) => return def_id, Some(def_id) => return def_id,
None => ctxt.remove_mark(), None => ctxt.remove_mark(),
}; };