Don't give APITs names with macro expansion placeholder fragments in it

This commit is contained in:
Michael Goulet
2025-06-18 17:57:22 +00:00
parent 2801f9aaf9
commit 8cd3fa04e2
9 changed files with 77 additions and 18 deletions

View File

@@ -522,6 +522,10 @@ impl<'ra, 'tcx> ResolverExpand for Resolver<'ra, 'tcx> {
});
Ok(idents)
}
fn insert_impl_trait_name(&mut self, id: NodeId, name: Symbol) {
self.impl_trait_names.insert(id, name);
}
}
impl<'ra, 'tcx> Resolver<'ra, 'tcx> {