We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9985fc commit 57b5f8cCopy full SHA for 57b5f8c
compiler/rustc_middle/src/ty/sty.rs
@@ -1628,17 +1628,11 @@ impl RegionKind {
1628
}
1629
1630
pub fn is_late_bound(&self) -> bool {
1631
- match *self {
1632
- ty::ReLateBound(..) => true,
1633
- _ => false,
1634
- }
+ matches!(*self, ty::ReLateBound(..))
1635
1636
1637
pub fn is_placeholder(&self) -> bool {
1638
1639
- ty::RePlaceholder(..) => true,
1640
1641
+ matches!(*self, ty::RePlaceholder(..))
1642
1643
1644
pub fn bound_at_or_above_binder(&self, index: DebruijnIndex) -> bool {
0 commit comments