Skip to content

Commit 1952f04

Browse files
Rollup merge of rust-lang#78890 - o752d:patch-2, r=jyn514
comment attribution fix comment means to refer to the macro in its direct scope
2 parents a08e7af + 21f44fb commit 1952f04

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

Lines changed: 1 addition & 1 deletion
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)