We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#[inline]
impl_tag
1 parent 2b8d27b commit bec7ce4Copy full SHA for bec7ce4
compiler/rustc_data_structures/src/tagged_ptr/impl_tag.rs
@@ -100,6 +100,7 @@ macro_rules! impl_tag {
100
)*
101
]);
102
103
+ #[inline]
104
fn into_usize(self) -> usize {
105
// This forbids use of repeating patterns (`Enum::V`&`Enum::V`, etc)
106
// (or at least it should, see <https://github.com/rust-lang/rust/issues/110613>)
@@ -112,6 +113,7 @@ macro_rules! impl_tag {
112
113
}
114
115
116
117
unsafe fn from_usize(tag: usize) -> Self {
118
match tag {
119
$(
0 commit comments