Skip to content

Commit

Permalink
comment attribution fix
Browse files Browse the repository at this point in the history
comment means to refer to the macro in its direct scope
  • Loading branch information
o752d committed Nov 9, 2020
1 parent fe8f026 commit 21f44fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/ty/consts/int.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ impl ScalarInt {
#[inline(always)]
fn check_data(self) {
// Using a block `{self.data}` here to force a copy instead of using `self.data`
// directly, because `assert_eq` takes references to its arguments and formatting
// directly, because `debug_assert_eq` takes references to its arguments and formatting
// arguments and would thus borrow `self.data`. Since `Self`
// is a packed struct, that would create a possibly unaligned reference, which
// is UB.
Expand Down

0 comments on commit 21f44fb

Please sign in to comment.