Skip to content

Commit b509e2d

Browse files
committed
Inline successor_within_block.
1 parent f83468c commit b509e2d

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
@@ -1568,6 +1568,7 @@ impl Location {
15681568
///
15691569
/// Note that if this location represents a terminator, then the
15701570
/// resulting location would be out of bounds and invalid.
1571+
#[inline]
15711572
pub fn successor_within_block(&self) -> Location {
15721573
Location { block: self.block, statement_index: self.statement_index + 1 }
15731574
}

0 commit comments

Comments
 (0)