diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-08-11 22:53:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-11 22:53:08 +0200 |
| commit | 8237efc52d909c482092fbf60356cfca59bf8ea0 (patch) | |
| tree | 3a817b002a70d7151595c25a24a45463cc22aa4d /compiler/rustc_builtin_macros/src | |
| parent | cefcfda6e63f934b44368261c6972f75dbe791f6 (diff) | |
| parent | b8b851f42e9a322179526f55d3fecf2a83bfeb11 (diff) | |
| download | rust-8237efc52d909c482092fbf60356cfca59bf8ea0.tar.gz rust-8237efc52d909c482092fbf60356cfca59bf8ea0.zip | |
Rollup merge of #100392 - nnethercote:simplify-visitors, r=cjgillot
Simplify visitors By removing some unused arguments. r? `@cjgillot`
Diffstat (limited to 'compiler/rustc_builtin_macros/src')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/deriving/generic/mod.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/compiler/rustc_builtin_macros/src/deriving/generic/mod.rs b/compiler/rustc_builtin_macros/src/deriving/generic/mod.rs index 735017aa5a8..ef64f52d40b 100644 --- a/compiler/rustc_builtin_macros/src/deriving/generic/mod.rs +++ b/compiler/rustc_builtin_macros/src/deriving/generic/mod.rs @@ -383,16 +383,12 @@ fn find_type_parameters( } // Place bound generic params on a stack, to extract them when a type is encountered. - fn visit_poly_trait_ref( - &mut self, - trait_ref: &'a ast::PolyTraitRef, - modifier: &'a ast::TraitBoundModifier, - ) { + fn visit_poly_trait_ref(&mut self, trait_ref: &'a ast::PolyTraitRef) { let stack_len = self.bound_generic_params_stack.len(); self.bound_generic_params_stack .extend(trait_ref.bound_generic_params.clone().into_iter()); - visit::walk_poly_trait_ref(self, trait_ref, modifier); + visit::walk_poly_trait_ref(self, trait_ref); self.bound_generic_params_stack.truncate(stack_len); } |
