mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 01:05:39 +03:00
d50349ba8d
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.