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.
borrowck::indexed_set
1 parent 71af40b commit c48650dCopy full SHA for c48650d
src/librustc_borrowck/indexed_set.rs
@@ -57,7 +57,7 @@ impl<T: Idx> fmt::Debug for IdxSet<T> {
57
58
impl<T: Idx> OwnIdxSet<T> {
59
fn new(init: Word, universe_size: usize) -> Self {
60
- let bits_per_word = mem::size_of::<Word>();
+ let bits_per_word = mem::size_of::<Word>() * 8;
61
let num_words = (universe_size + (bits_per_word - 1)) / bits_per_word;
62
OwnIdxSet {
63
_pd: Default::default(),
0 commit comments