Skip to content

Commit

Permalink
No need to use local.into here
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino authored and oli-obk committed Jan 10, 2020
1 parent a9de4f1 commit 7f3459a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/mir/mod.rs
Expand Up @@ -1793,7 +1793,7 @@ impl<'tcx> Place<'tcx> {

impl From<Local> for Place<'_> {
fn from(local: Local) -> Self {
Place { local: local.into(), projection: List::empty() }
Place { local, projection: List::empty() }
}
}

Expand Down

0 comments on commit 7f3459a

Please sign in to comment.