about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-05-03 18:40:09 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-12-31 00:37:45 +0000
commitb509e2dd00a6673704b32f2a1a96d194782b62b4 (patch)
treeea51a971ffbb8a526b7a10efcd72a7df62b7e5dc
parentf83468c89b706e686ff2d991299789050ea493de (diff)
downloadrust-b509e2dd00a6673704b32f2a1a96d194782b62b4.tar.gz
rust-b509e2dd00a6673704b32f2a1a96d194782b62b4.zip
Inline successor_within_block.
-rw-r--r--compiler/rustc_middle/src/mir/mod.rs1
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 }
     }