Avoid cloning Place in limit_capture_mutability
This commit is contained in:
parent
10470797a6
commit
2ffd3c64f9
1 changed files with 3 additions and 3 deletions
|
@ -531,9 +531,9 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
elem: ProjectionElem::Deref,
|
||||
}),
|
||||
} => {
|
||||
let place = Place {
|
||||
base: base.clone(),
|
||||
projection: base_proj.clone(),
|
||||
let place = PlaceRef {
|
||||
base,
|
||||
projection: base_proj,
|
||||
};
|
||||
|
||||
// Not projected from the implicit `self` in a closure.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue