mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
Inline successor_within_block.
This commit is contained in:
parent
f83468c89b
commit
b509e2dd00
@ -1568,6 +1568,7 @@ impl Location {
|
|||||||
///
|
///
|
||||||
/// Note that if this location represents a terminator, then the
|
/// Note that if this location represents a terminator, then the
|
||||||
/// resulting location would be out of bounds and invalid.
|
/// resulting location would be out of bounds and invalid.
|
||||||
|
#[inline]
|
||||||
pub fn successor_within_block(&self) -> Location {
|
pub fn successor_within_block(&self) -> Location {
|
||||||
Location { block: self.block, statement_index: self.statement_index + 1 }
|
Location { block: self.block, statement_index: self.statement_index + 1 }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user