about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-06-24 06:27:16 +0200
committerGitHub <noreply@github.com>2024-06-24 06:27:16 +0200
commit3108dfacedbd48dc76d6e7a7d19dace7495dfb32 (patch)
treeb0673a42a6131330adc4f2d930b45d261c154903 /compiler/rustc_parse/src/errors.rs
parentdcace866f08046f6b15a836c866861138915020e (diff)
parent0d8f734172ca17844a3c0f1d938222aac49b0d16 (diff)
downloadrust-3108dfacedbd48dc76d6e7a7d19dace7495dfb32.tar.gz
rust-3108dfacedbd48dc76d6e7a7d19dace7495dfb32.zip
Rollup merge of #126849 - workingjubilee:correctly-classify-arm-low-dregs, r=Amanieu
Fix 32-bit Arm reg classes by hierarchically sorting them

We were rejecting legal `asm!` because we were asking for the "greatest" feature that includes a register class, instead of the "least" feature that includes a register class. This was only revealed on certain 32-bit Arm targets because not all have the same register limitations.

This is a somewhat hacky solution, but other solutions would require potentially rearchitecting how the internals of parsing or rejecting register classes work for all targets.

Fixes #126797

r​? ``@Amanieu``
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
0 files changed, 0 insertions, 0 deletions