about summary refs log tree commit diff
diff options
context:
space:
mode:
authoro752d <16816606+o752d@users.noreply.github.com>2020-11-09 03:42:10 +0000
committerGitHub <noreply@github.com>2020-11-09 03:42:10 +0000
commit21f44fb88f59ceeb324a36729a12d6b75ae93f57 (patch)
tree3b169f4ac8b2769e4d8ed1da4ba92035ee853e55
parentfe8f02690804d5ee696bd3bca9515f5f71857e3b (diff)
downloadrust-21f44fb88f59ceeb324a36729a12d6b75ae93f57.tar.gz
rust-21f44fb88f59ceeb324a36729a12d6b75ae93f57.zip
comment attribution fix
comment means to refer to the macro in its direct scope
-rw-r--r--compiler/rustc_middle/src/ty/consts/int.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/consts/int.rs b/compiler/rustc_middle/src/ty/consts/int.rs
index 126257a5b49..63e95f25bb7 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.