diff options
| author | Michael Goulet <michael@errs.io> | 2025-06-18 17:57:22 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-06-25 15:42:11 +0000 |
| commit | 8cd3fa04e2e023967cf2cfe3e4170b636fd25019 (patch) | |
| tree | 42fc183b7cee5f294bde109c934bf417619062f0 /compiler/rustc_resolve/src/macros.rs | |
| parent | 2801f9aaf9b7580d9b230b532b0700709857cc88 (diff) | |
| download | rust-8cd3fa04e2e023967cf2cfe3e4170b636fd25019.tar.gz rust-8cd3fa04e2e023967cf2cfe3e4170b636fd25019.zip | |
Don't give APITs names with macro expansion placeholder fragments in it
Diffstat (limited to 'compiler/rustc_resolve/src/macros.rs')
| -rw-r--r-- | compiler/rustc_resolve/src/macros.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_resolve/src/macros.rs b/compiler/rustc_resolve/src/macros.rs index 1b82e9c9799..3d33a02a9c6 100644 --- a/compiler/rustc_resolve/src/macros.rs +++ b/compiler/rustc_resolve/src/macros.rs @@ -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> { |
