about summary refs log tree commit diff
path: root/tests/ui/asm/binary_asm_labels_allowed.rs
AgeCommit message (Collapse)AuthorLines
2024-07-18Change `binary_asm_labels` to only fire on x86 and x86_64Trevor Gross-0/+17
In <https://github.com/rust-lang/rust/pull/126922>, the `binary_asm_labels` lint was added which flags labels such as `0:` and `1:`. Before that change, LLVM was giving a confusing error on x86/x86_64 because of an incorrect interpretation. However, targets other than x86 and x86_64 never had the error message and have not been a problem. This means that the lint was causing code that previously worked to start failing (e.g. `compiler_builtins`), rather than only providing a more clear messages where there has always been an error. Adjust the lint to only fire on x86 and x86_64 assembly to avoid this regression.