We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 125156c + 57b5f8c commit 5af144eCopy full SHA for 5af144e
compiler/rustc_middle/src/ty/sty.rs
@@ -1572,17 +1572,11 @@ impl RegionKind {
1572
}
1573
1574
pub fn is_late_bound(&self) -> bool {
1575
- match *self {
1576
- ty::ReLateBound(..) => true,
1577
- _ => false,
1578
- }
+ matches!(*self, ty::ReLateBound(..))
1579
1580
1581
pub fn is_placeholder(&self) -> bool {
1582
1583
- ty::RePlaceholder(..) => true,
1584
1585
+ matches!(*self, ty::RePlaceholder(..))
1586
1587
1588
pub fn bound_at_or_above_binder(&self, index: ty::DebruijnIndex) -> bool {
0 commit comments