mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-11 01:17:39 +00:00
![]() 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. |
||
---|---|---|
.. | ||
callbacks.rs | ||
errors.rs | ||
interface.rs | ||
lib.rs | ||
passes.rs | ||
proc_macro_decls.rs | ||
queries.rs | ||
tests.rs | ||
util.rs |