remove unneeded mutable references (cippy::unnecessary_mut_passed)
This commit is contained in:
parent
cca3d52160
commit
77af19eb71
2 changed files with 3 additions and 3 deletions
|
|
@ -113,7 +113,7 @@ impl<'tcx> AutoTraitFinder<'tcx> {
|
|||
return AutoTraitResult::ExplicitImpl;
|
||||
}
|
||||
|
||||
return tcx.infer_ctxt().enter(|mut infcx| {
|
||||
return tcx.infer_ctxt().enter(|infcx| {
|
||||
let mut fresh_preds = FxHashSet::default();
|
||||
|
||||
// Due to the way projections are handled by SelectionContext, we need to run
|
||||
|
|
@ -164,7 +164,7 @@ impl<'tcx> AutoTraitFinder<'tcx> {
|
|||
|
||||
let (full_env, full_user_env) = self
|
||||
.evaluate_predicates(
|
||||
&mut infcx,
|
||||
&infcx,
|
||||
trait_did,
|
||||
ty,
|
||||
new_env,
|
||||
|
|
|
|||
|
|
@ -944,7 +944,7 @@ fn create_generator_drop_shim<'tcx>(
|
|||
// unrelated code from the resume part of the function
|
||||
simplify::remove_dead_blocks(&mut body);
|
||||
|
||||
dump_mir(tcx, None, "generator_drop", &0, source, &mut body, |_, _| Ok(()));
|
||||
dump_mir(tcx, None, "generator_drop", &0, source, &body, |_, _| Ok(()));
|
||||
|
||||
body
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue