Skip to content

Commit 8617ff0

Browse files
committed
Add inline.
1 parent d9c6e70 commit 8617ff0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_hir/src/hir_id.rs

+2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ pub struct HirId {
1919
}
2020

2121
impl HirId {
22+
#[inline]
2223
pub fn expect_owner(self) -> LocalDefId {
2324
assert_eq!(self.local_id.index(), 0);
2425
self.owner
2526
}
2627

28+
#[inline]
2729
pub fn as_owner(self) -> Option<LocalDefId> {
2830
if self.local_id.index() == 0 { Some(self.owner) } else { None }
2931
}

0 commit comments

Comments
 (0)