rust/compiler/rustc_interface/src
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
..
callbacks.rs Simplify tls::enter_context. 2023-02-09 15:25:45 +11:00
errors.rs Remove a back compat warning 2023-02-22 19:39:03 +00:00
interface.rs Improve with_source_map. 2023-03-31 15:57:25 +11:00
lib.rs Stabilize a portion of 'once_cell' 2023-03-29 18:04:44 -04:00
passes.rs Make check_match take a LocalDefId. 2023-04-03 15:59:21 +00:00
proc_macro_decls.rs rustc: Remove unused Session argument from some attribute functions 2023-03-22 13:55:55 +04:00
queries.rs Add a usize-indexed append-only-vec 2023-04-04 09:01:44 +00:00
tests.rs Preserve, clarify, and extend debug information 2023-03-31 07:28:39 -04:00
util.rs Rollup merge of #108480 - Zoxc:rayon-tlv, r=cuviper 2023-03-28 12:51:12 +02:00