Return Place
by value
This commit is contained in:
parent
682de94e31
commit
ffd9445812
@ -285,8 +285,8 @@ impl Replacements<'tcx> {
|
||||
}
|
||||
}
|
||||
|
||||
fn for_src(&self, src: Local) -> Option<&Place<'tcx>> {
|
||||
self.map[src].as_ref()
|
||||
fn for_src(&self, src: Local) -> Option<Place<'tcx>> {
|
||||
self.map[src]
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user