Skip to content

Commit baa88d0

Browse files
committed
Fix CI
1 parent b01220c commit baa88d0

File tree

1 file changed

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

1 file changed

+8
-0
lines changed

compiler/rustc_data_structures/src/tagged_ptr/impl_tag.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,20 @@ macro_rules! impl_tag {
9393
// `bits_for_tags` is called on the same `${index()}`-es as
9494
// `into_usize` returns, thus `BITS` constant is correct.
9595
unsafe impl $crate::tagged_ptr::Tag for $Self {
96+
#[cfg(bootstrap)]
9697
const BITS: u32 = $crate::tagged_ptr::bits_for_tags(&[
9798
$(
9899
${index()},
99100
$( ${ignore(path)} )*
100101
)*
101102
]);
103+
#[cfg(not(bootstrap))]
104+
const BITS: u32 = $crate::tagged_ptr::bits_for_tags(&[
105+
$(
106+
${index()},
107+
$( ${ignore($path)} )*
108+
)*
109+
]);
102110

103111
#[inline]
104112
fn into_usize(self) -> usize {

0 commit comments

Comments
 (0)