Skip to content

Commit bec7ce4

Browse files
committed
Add #[inline] in impl_tag
1 parent 2b8d27b commit bec7ce4

File tree

1 file changed

+2
-0
lines changed
  • compiler/rustc_data_structures/src/tagged_ptr

1 file changed

+2
-0
lines changed

compiler/rustc_data_structures/src/tagged_ptr/impl_tag.rs

+2
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ macro_rules! impl_tag {
100100
)*
101101
]);
102102

103+
#[inline]
103104
fn into_usize(self) -> usize {
104105
// This forbids use of repeating patterns (`Enum::V`&`Enum::V`, etc)
105106
// (or at least it should, see <https://github.com/rust-lang/rust/issues/110613>)
@@ -112,6 +113,7 @@ macro_rules! impl_tag {
112113
}
113114
}
114115

116+
#[inline]
115117
unsafe fn from_usize(tag: usize) -> Self {
116118
match tag {
117119
$(

0 commit comments

Comments
 (0)