Skip to content

Commit

Permalink
Rollup merge of #78890 - o752d:patch-2, r=jyn514
Browse files Browse the repository at this point in the history
comment attribution fix

comment means to refer to the macro in its direct scope
  • Loading branch information
jonas-schievink committed Nov 10, 2020
2 parents a08e7af + 21f44fb commit 1952f04
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 1952f04

Please sign in to comment.