diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-05-03 18:40:09 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-12-31 00:37:45 +0000 |
| commit | b509e2dd00a6673704b32f2a1a96d194782b62b4 (patch) | |
| tree | ea51a971ffbb8a526b7a10efcd72a7df62b7e5dc /compiler | |
| parent | f83468c89b706e686ff2d991299789050ea493de (diff) | |
| download | rust-b509e2dd00a6673704b32f2a1a96d194782b62b4.tar.gz rust-b509e2dd00a6673704b32f2a1a96d194782b62b4.zip | |
Inline successor_within_block.
Diffstat (limited to 'compiler')
| -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 0a35afddf40..105ac66e4a8 100644 --- a/compiler/rustc_middle/src/mir/mod.rs +++ b/compiler/rustc_middle/src/mir/mod.rs @@ -1568,6 +1568,7 @@ impl Location { /// /// Note that if this location represents a terminator, then the /// resulting location would be out of bounds and invalid. + #[inline] pub fn successor_within_block(&self) -> Location { Location { block: self.block, statement_index: self.statement_index + 1 } } |
