]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_infer/src/infer/free_regions.rs
New upstream version 1.51.0+dfsg1
[rustc.git] / compiler / rustc_infer / src / infer / free_regions.rs
index 32f73237dd410411d3b51dd8c437928af1cfdfe2..728dc2de370319897fee6eb3dff68a2e66940bd1 100644 (file)
@@ -93,10 +93,7 @@ impl<'tcx> FreeRegionMap<'tcx> {
 
     /// True for free regions other than `'static`.
     pub fn is_free(&self, r: Region<'_>) -> bool {
-        match *r {
-            ty::ReEarlyBound(_) | ty::ReFree(_) => true,
-            _ => false,
-        }
+        matches!(r, ty::ReEarlyBound(_) | ty::ReFree(_))
     }
 
     /// True if `r` is a free region or static of the sort that this