Skip to content

Commit

Permalink
Inline trivial From<Local> for Place<'_> impl
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiasko committed Aug 25, 2022
1 parent 58eabb2 commit 4394ea8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_middle/src/mir/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1531,6 +1531,7 @@ impl<'tcx> Place<'tcx> {
}

impl From<Local> for Place<'_> {
#[inline]
fn from(local: Local) -> Self {
Place { local, projection: List::empty() }
}
Expand Down

0 comments on commit 4394ea8

Please sign in to comment.