From 21f44fb88f59ceeb324a36729a12d6b75ae93f57 Mon Sep 17 00:00:00 2001 From: o752d <16816606+o752d@users.noreply.github.com> Date: Mon, 9 Nov 2020 03:42:10 +0000 Subject: [PATCH] comment attribution fix comment means to refer to the macro in its direct scope --- compiler/rustc_middle/src/ty/consts/int.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_middle/src/ty/consts/int.rs b/compiler/rustc_middle/src/ty/consts/int.rs index 126257a5b49ee..63e95f25bb7f3 100644 --- a/compiler/rustc_middle/src/ty/consts/int.rs +++ b/compiler/rustc_middle/src/ty/consts/int.rs @@ -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.