Skip to content

Commit 21f44fb

Browse files
author
o752d
authored
comment attribution fix
comment means to refer to the macro in its direct scope
1 parent fe8f026 commit 21f44fb

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_middle/src/ty/consts

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/ty/consts/int.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl ScalarInt {
168168
#[inline(always)]
169169
fn check_data(self) {
170170
// 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
171+
// directly, because `debug_assert_eq` takes references to its arguments and formatting
172172
// arguments and would thus borrow `self.data`. Since `Self`
173173
// is a packed struct, that would create a possibly unaligned reference, which
174174
// is UB.

0 commit comments

Comments
 (0)