Comment tweaks
This commit is contained in:
parent
75915ad16f
commit
1e1f2194b6
@ -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 {
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user