about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/traits/util.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-03-29 15:17:11 +0100
committerGitHub <noreply@github.com>2024-03-29 15:17:11 +0100
commit8d820c0c47ed2be6897859c4eeb7679e4c083ac4 (patch)
tree7e52fe5b849c58e8cd3b02feb3586f25097fec77 /compiler/rustc_trait_selection/src/traits/util.rs
parenta18da0088e8f1dbefd55e8974d8eae45c8bce80d (diff)
parent8245718503f24a0a316c6603195b94be23f4fda4 (diff)
downloadrust-8d820c0c47ed2be6897859c4eeb7679e4c083ac4.tar.gz
rust-8d820c0c47ed2be6897859c4eeb7679e4c083ac4.zip
Rollup merge of #123188 - klensy:clippy-me2, r=Nilstrieb
compiler: fix few unused_peekable and needless_pass_by_ref_mut clippy lints

This fixes few instances of `unused_peekable` and `needless_pass_by_ref_mut`. While i expected to fix more warnings, `needless_pass_by_ref_mut` produced too much for one PR, so i stopped here.

Better reviewed commit by commit, as fixes splitted by chunks.
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/util.rs')
-rw-r--r--compiler/rustc_trait_selection/src/traits/util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/util.rs b/compiler/rustc_trait_selection/src/traits/util.rs
index 29d063321a7..466a53d8ce0 100644
--- a/compiler/rustc_trait_selection/src/traits/util.rs
+++ b/compiler/rustc_trait_selection/src/traits/util.rs
@@ -205,7 +205,7 @@ impl Iterator for SupertraitDefIds<'_> {
 /// returning the resulting subject and all obligations that arise.
 /// The obligations are closed under normalization.
 pub fn impl_subject_and_oblig<'a, 'tcx>(
-    selcx: &mut SelectionContext<'a, 'tcx>,
+    selcx: &SelectionContext<'a, 'tcx>,
     param_env: ty::ParamEnv<'tcx>,
     impl_def_id: DefId,
     impl_args: GenericArgsRef<'tcx>,