mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
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:
commit
651f53e517
@ -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(),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user