diff options
| author | Jake Goulding <jake.goulding@gmail.com> | 2023-11-25 15:45:44 -0500 |
|---|---|---|
| committer | Jake Goulding <jake.goulding@gmail.com> | 2023-11-27 13:54:50 -0500 |
| commit | 87380cbc0c967f7ffb714c01e02c48fb6daf6eee (patch) | |
| tree | e0d6fe072af9ece27315f68ea3406432bccb1605 /compiler/rustc_resolve/src/def_collector.rs | |
| parent | 9f15a889f0cfa8e407beaa3a44205de971572101 (diff) | |
| download | rust-87380cbc0c967f7ffb714c01e02c48fb6daf6eee.tar.gz rust-87380cbc0c967f7ffb714c01e02c48fb6daf6eee.zip | |
Address unused tuple struct fields in the compiler
Diffstat (limited to 'compiler/rustc_resolve/src/def_collector.rs')
| -rw-r--r-- | compiler/rustc_resolve/src/def_collector.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/rustc_resolve/src/def_collector.rs b/compiler/rustc_resolve/src/def_collector.rs index b1ee7f438d2..c52450e11d6 100644 --- a/compiler/rustc_resolve/src/def_collector.rs +++ b/compiler/rustc_resolve/src/def_collector.rs @@ -223,7 +223,7 @@ impl<'a, 'b, 'tcx> visit::Visitor<'a> for DefCollector<'a, 'b, 'tcx> { // ``` // // In that case, the impl-trait is lowered as an additional generic parameter. - self.with_impl_trait(ImplTraitContext::Universal(self.parent_def), |this| { + self.with_impl_trait(ImplTraitContext::Universal, |this| { visit::walk_generic_param(this, param) }); } @@ -310,9 +310,7 @@ impl<'a, 'b, 'tcx> visit::Visitor<'a> for DefCollector<'a, 'b, 'tcx> { if p.is_placeholder { self.visit_macro_invoc(p.id) } else { - self.with_impl_trait(ImplTraitContext::Universal(self.parent_def), |this| { - visit::walk_param(this, p) - }) + self.with_impl_trait(ImplTraitContext::Universal, |this| visit::walk_param(this, p)) } } |
