Skip to content

Commit 4394ea8

Browse files
committed
Inline trivial From<Local> for Place<'_> impl
1 parent 58eabb2 commit 4394ea8

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_middle/src/mir

1 file changed

+1
-0
lines changed

compiler/rustc_middle/src/mir/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1531,6 +1531,7 @@ impl<'tcx> Place<'tcx> {
15311531
}
15321532

15331533
impl From<Local> for Place<'_> {
1534+
#[inline]
15341535
fn from(local: Local) -> Self {
15351536
Place { local, projection: List::empty() }
15361537
}

0 commit comments

Comments
 (0)