Remove unneeded mut
variable
`arg_elide` gets initialized, immediately cloned, and only written to after that.
The last reading access was removed back in
7704762604
This commit is contained in:
parent
e0d9f79399
commit
8e34522309
1 changed files with 1 additions and 8 deletions
|
@ -2083,18 +2083,11 @@ impl<'a, 'tcx> LifetimeContext<'a, 'tcx> {
|
||||||
output: Option<&'tcx hir::Ty<'tcx>>,
|
output: Option<&'tcx hir::Ty<'tcx>>,
|
||||||
) {
|
) {
|
||||||
debug!("visit_fn_like_elision: enter");
|
debug!("visit_fn_like_elision: enter");
|
||||||
let mut arg_elide = Elide::FreshLateAnon(Cell::new(0));
|
let arg_scope = Scope::Elision { elide: Elide::FreshLateAnon(Cell::new(0)), s: self.scope };
|
||||||
let arg_scope = Scope::Elision { elide: arg_elide.clone(), s: self.scope };
|
|
||||||
self.with(arg_scope, |_, this| {
|
self.with(arg_scope, |_, this| {
|
||||||
for input in inputs {
|
for input in inputs {
|
||||||
this.visit_ty(input);
|
this.visit_ty(input);
|
||||||
}
|
}
|
||||||
match *this.scope {
|
|
||||||
Scope::Elision { ref elide, .. } => {
|
|
||||||
arg_elide = elide.clone();
|
|
||||||
}
|
|
||||||
_ => bug!(),
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
let output = match output {
|
let output = match output {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue