rust/tests/ui/consts/miri_unleashed
bors 0534655d9b Auto merge of #108504 - cjgillot:thir-pattern, r=compiler-errors,Nilstrieb
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.
2023-04-06 12:42:01 +00:00
..
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 Perform match checking on THIR. 2023-04-03 15:59:21 +00:00
const_refers_to_static_cross_crate.64bit.stderr Perform match checking on THIR. 2023-04-03 15:59:21 +00:00
const_refers_to_static_cross_crate.rs Perform match checking on THIR. 2023-04-03 15:59:21 +00:00
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 Bless tests 2023-04-05 15:59:29 +00:00