Skip to content

Commit

Permalink
Return Place by value
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Sep 18, 2020
1 parent 682de94 commit ffd9445
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_mir/src/transform/dest_prop.rs
Expand Up @@ -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]
}
}

Expand Down

0 comments on commit ffd9445

Please sign in to comment.