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_resolve/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_resolve/src')
| -rw-r--r-- | compiler/rustc_resolve/src/late.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/late.rs b/compiler/rustc_resolve/src/late.rs index cbd0ca49c99..58a4cff55db 100644 --- a/compiler/rustc_resolve/src/late.rs +++ b/compiler/rustc_resolve/src/late.rs @@ -723,7 +723,7 @@ impl<'a: 'ast, 'ast> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast> { self.diagnostic_metadata.current_trait_object = prev; self.diagnostic_metadata.current_type_path = prev_ty; } - fn visit_poly_trait_ref(&mut self, tref: &'ast PolyTraitRef, _: &'ast TraitBoundModifier) { + fn visit_poly_trait_ref(&mut self, tref: &'ast PolyTraitRef) { let span = tref.span.shrink_to_lo().to(tref.trait_ref.path.span.shrink_to_lo()); self.with_generic_param_rib( &tref.bound_generic_params, |
