Open tgross35 opened 3 months ago
@estebank I'm a bit light on the details here, and not sure I understand it fully. Do we do anything like this at the current time? It would be great if we could validate assembly for all targets (actual correctness, not just lints), but block-level cfg
seems to make that difficult.
Oh, did you mean if cfg!(...)
rather than attribute config? That seems potentially easier, but I have no clue what level of support these things have.
For example:
This currently raises
binary_asm_labels
only if targeting x86. Ideally we would be able to raise the lint regardless of what the current target is.Requested in https://github.com/rust-lang/rust/issues/127821 and https://github.com/rust-lang/rust/pull/127935