about summary refs log tree commit diff
diff options
context:
space:
mode:
authorasquared31415 <34665709+asquared31415@users.noreply.github.com>2021-07-21 16:10:22 -0400
committerasquared31415 <34665709+asquared31415@users.noreply.github.com>2021-08-04 13:38:17 -0400
commit1e1f2194b69d27b77d7ee5a56c388e431d9e8bab (patch)
tree683337bcbfb0f7b7c4f5fe29b9916eff30164164
parent75915ad16f5e30c822e5a1be35c69f78f98e2c1f (diff)
downloadrust-1e1f2194b69d27b77d7ee5a56c388e431d9e8bab.tar.gz
rust-1e1f2194b69d27b77d7ee5a56c388e431d9e8bab.zip
Comment tweaks
-rw-r--r--compiler/rustc_builtin_macros/src/asm.rs1
-rw-r--r--compiler/rustc_lint_defs/src/builtin.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/asm.rs b/compiler/rustc_builtin_macros/src/asm.rs
index 9a82561db5e..1dbb3b45b4e 100644
--- a/compiler/rustc_builtin_macros/src/asm.rs
+++ b/compiler/rustc_builtin_macros/src/asm.rs
@@ -473,6 +473,7 @@ fn expand_preparsed_asm(
             }
         }
 
+        // Lint against the use of named labels in inline `asm!` but not `global_asm!`
         if is_local_asm {
             let find_label_span = |needle: &str| -> Option<Span> {
                 if let Some(snippet) = &template_snippet {
diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs
index 88288e1a6a6..641ae93fdb3 100644
--- a/compiler/rustc_lint_defs/src/builtin.rs
+++ b/compiler/rustc_lint_defs/src/builtin.rs
@@ -2488,7 +2488,7 @@ declare_lint! {
     ///
     /// ### Explanation
     ///
-    /// LLVM's assembler is allowed to duplicate inline assembly blocks for any
+    /// LLVM is allowed to duplicate inline assembly blocks for any
     /// reason, for example when it is in a function that gets inlined. Because
     /// of this, GNU assembler [local labels] *must* be used instead of labels
     /// with a name. Using named labels might cause assembler or linker errors.