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.
1 parent b01220c commit baa88d0Copy full SHA for baa88d0
compiler/rustc_data_structures/src/tagged_ptr/impl_tag.rs
@@ -93,12 +93,20 @@ macro_rules! impl_tag {
93
// `bits_for_tags` is called on the same `${index()}`-es as
94
// `into_usize` returns, thus `BITS` constant is correct.
95
unsafe impl $crate::tagged_ptr::Tag for $Self {
96
+ #[cfg(bootstrap)]
97
const BITS: u32 = $crate::tagged_ptr::bits_for_tags(&[
98
$(
99
${index()},
100
$( ${ignore(path)} )*
101
)*
102
]);
103
+ #[cfg(not(bootstrap))]
104
+ const BITS: u32 = $crate::tagged_ptr::bits_for_tags(&[
105
+ $(
106
+ ${index()},
107
+ $( ${ignore($path)} )*
108
+ )*
109
+ ]);
110
111
#[inline]
112
fn into_usize(self) -> usize {
0 commit comments