Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 1e1f219

Browse files
committed
Comment tweaks
1 parent 75915ad commit 1e1f219

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

compiler/rustc_builtin_macros/src/asm.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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 {

compiler/rustc_lint_defs/src/builtin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)