Rollup merge of #78890 - o752d:patch-2, r=jyn514

comment attribution fix

comment means to refer to the macro in its direct scope
This commit is contained in:
Jonas Schievink 2020-11-10 14:45:25 +01:00 committed by GitHub
commit 1952f04a61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,7 +168,7 @@ pub fn size(self) -> Size {
#[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.