]> git.lizzy.rs Git - rust.git/commitdiff
Comment tweaks
authorasquared31415 <34665709+asquared31415@users.noreply.github.com>
Wed, 21 Jul 2021 20:10:22 +0000 (16:10 -0400)
committerasquared31415 <34665709+asquared31415@users.noreply.github.com>
Wed, 4 Aug 2021 17:38:17 +0000 (13:38 -0400)
compiler/rustc_builtin_macros/src/asm.rs
compiler/rustc_lint_defs/src/builtin.rs

index 9a82561db5e657362bf5f56d045232851c06e325..1dbb3b45b4e4e9dfb5a6b078596a049d3eac7d64 100644 (file)
@@ -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 {
index 88288e1a6a63f1db1eb5dc57f089e17af5e6e8eb..641ae93fdb355ec659d5ec38f92976d20a1e1c67 100644 (file)
     ///
     /// ### 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.