mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +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 {
|
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(),
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user