diff options
| author | Trevor Gross <tmgross@umich.edu> | 2024-07-18 15:00:56 -0500 |
|---|---|---|
| committer | Trevor Gross <tmgross@umich.edu> | 2024-07-18 15:00:56 -0500 |
| commit | 9387a7523ec4a3668159aa2d9eff8d7a1cb8700b (patch) | |
| tree | 01364b3795e3aab2893ccb2f6a52f19672df5829 /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | 5753b3067662e17a69b54b9418dbc37b73769a84 (diff) | |
| download | rust-9387a7523ec4a3668159aa2d9eff8d7a1cb8700b.tar.gz rust-9387a7523ec4a3668159aa2d9eff8d7a1cb8700b.zip | |
Change `binary_asm_labels` to only fire on x86 and x86_64
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions
