mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-10 20:08:41 +00:00
Reduce boilerplate with the matches! macro
Replaces simple bool `match`es of the form
match $expr {
$pattern => true
_ => false
}
and their inverse with invocations of the matches! macro.
Limited to rustc_middle for now to get my feet wet.
For more information about how rustc works, see the rustc dev guide.