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 66b11eb commit 134cacdCopy full SHA for 134cacd
src/structures/gdt.rs
@@ -123,7 +123,7 @@ impl GlobalDescriptorTable {
123
"initializing a GDT from a slice requires it to be **at most** 8 elements."
124
);
125
#[cfg(not(feature = "const_fn"))]
126
- table[next_free]; // Will fail if slice.len() > 8
+ [(); 1][!(next_free <= 8) as usize];
127
128
while idx != next_free {
129
table[idx] = slice[idx];
0 commit comments