Comment tweaks

This commit is contained in:
asquared31415 2021-07-21 16:10:22 -04:00
parent 75915ad16f
commit 1e1f2194b6
2 changed files with 2 additions and 1 deletions

View 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 {

View File

@ -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.