We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe8f026 commit 21f44fbCopy full SHA for 21f44fb
compiler/rustc_middle/src/ty/consts/int.rs
@@ -168,7 +168,7 @@ impl ScalarInt {
168
#[inline(always)]
169
fn check_data(self) {
170
// Using a block `{self.data}` here to force a copy instead of using `self.data`
171
- // directly, because `assert_eq` takes references to its arguments and formatting
+ // directly, because `debug_assert_eq` takes references to its arguments and formatting
172
// arguments and would thus borrow `self.data`. Since `Self`
173
// is a packed struct, that would create a possibly unaligned reference, which
174
// is UB.
0 commit comments