Return Place by value

This commit is contained in:
Jonas Schievink 2020-09-17 22:17:09 +02:00
parent 682de94e31
commit ffd9445812

View File

@ -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]
}
}