We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c33b07 commit e101042Copy full SHA for e101042
compiler/rustc_expand/src/base.rs
@@ -1043,6 +1043,10 @@ impl<'a> ExtCtxt<'a> {
1043
.chain(components.iter().map(|&s| Ident::with_dummy_span(s)))
1044
.collect()
1045
}
1046
+ pub fn def_site_path(&self, components: &[Symbol]) -> Vec<Ident> {
1047
+ let def_site = self.with_def_site_ctxt(DUMMY_SP);
1048
+ components.iter().map(|&s| Ident::new(s, def_site)).collect()
1049
+ }
1050
1051
pub fn check_unused_macros(&mut self) {
1052
self.resolver.check_unused_macros();
0 commit comments