mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
0534655d9b
Check pattern refutability on THIR The current `check_match` query is based on HIR, but partially re-lowers HIR into THIR. This PR proposed to use the results of the `thir_body` query to check matches, instead of re-building THIR. Most of the diagnostic changes are spans getting shorter, or commas/semicolons not getting removed. This PR degrades the diagnostic for confusing constants in patterns (`let A = foo()` where `A` resolves to a `const A` somewhere): it does not point ot the definition of `const A` any more. |
||
---|---|---|
.. | ||
auxiliary | ||
abi-mismatch.rs | ||
abi-mismatch.stderr | ||
assoc_const_2.rs | ||
assoc_const_2.stderr | ||
assoc_const.rs | ||
assoc_const.stderr | ||
box.rs | ||
box.stderr | ||
const_refers_to_static_cross_crate.32bit.stderr | ||
const_refers_to_static_cross_crate.64bit.stderr | ||
const_refers_to_static_cross_crate.rs | ||
const_refers_to_static.32bit.stderr | ||
const_refers_to_static.64bit.stderr | ||
const_refers_to_static.rs | ||
drop.rs | ||
drop.stderr | ||
feature-gate-unleash_the_miri_inside_of_you.rs | ||
feature-gate-unleash_the_miri_inside_of_you.stderr | ||
inline_asm.rs | ||
inline_asm.stderr | ||
mutable_references_err.32bit.stderr | ||
mutable_references_err.64bit.stderr | ||
mutable_references_err.rs | ||
mutable_references.rs | ||
mutable_references.stderr | ||
mutating_global.rs | ||
mutating_global.stderr | ||
non_const_fn.rs | ||
non_const_fn.stderr | ||
ptr_arith.rs | ||
ptr_arith.stderr | ||
raw_mutable_const.rs | ||
raw_mutable_const.stderr | ||
slice_eq.rs | ||
tls.rs | ||
tls.stderr |