diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-08-25 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-08-25 10:38:00 +0200 |
| commit | 4394ea8b8230b21973ee0f7a58dbce7c531ef0c2 (patch) | |
| tree | 1466845729e636d6db4370786a1bd723ad0a2349 | |
| parent | 58eabb291d4e4e307e00869f5a253c5061482141 (diff) | |
| download | rust-4394ea8b8230b21973ee0f7a58dbce7c531ef0c2.tar.gz rust-4394ea8b8230b21973ee0f7a58dbce7c531ef0c2.zip | |
Inline trivial `From<Local> for Place<'_>` impl
| -rw-r--r-- | compiler/rustc_middle/src/mir/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/mir/mod.rs b/compiler/rustc_middle/src/mir/mod.rs index 7ab71f9009d..9da9b4e91f6 100644 --- a/compiler/rustc_middle/src/mir/mod.rs +++ b/compiler/rustc_middle/src/mir/mod.rs @@ -1531,6 +1531,7 @@ impl<'tcx> Place<'tcx> { } impl From<Local> for Place<'_> { + #[inline] fn from(local: Local) -> Self { Place { local, projection: List::empty() } } |
