File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -473,6 +473,7 @@ fn expand_preparsed_asm(
473473 }
474474 }
475475
476+ // Lint against the use of named labels in inline `asm!` but not `global_asm!`
476477 if is_local_asm {
477478 let find_label_span = |needle : & str | -> Option < Span > {
478479 if let Some ( snippet) = & template_snippet {
Original file line number Diff line number Diff line change @@ -2488,7 +2488,7 @@ declare_lint! {
24882488 ///
24892489 /// ### Explanation
24902490 ///
2491- /// LLVM's assembler is allowed to duplicate inline assembly blocks for any
2491+ /// LLVM is allowed to duplicate inline assembly blocks for any
24922492 /// reason, for example when it is in a function that gets inlined. Because
24932493 /// of this, GNU assembler [local labels] *must* be used instead of labels
24942494 /// with a name. Using named labels might cause assembler or linker errors.
You can’t perform that action at this time.
0 commit comments