]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_middle/src/ty/erase_regions.rs
Rollup merge of #91950 - estebank:point-at-type-of-non-allocator, r=matthewjasper
[rust.git] / compiler / rustc_middle / src / ty / erase_regions.rs
index 0d290752e8fd81c130f4b06040ae3abbdd71800a..ef4f77c8a69e11ae06ae0193e9e8891850316242 100644 (file)
@@ -21,9 +21,7 @@ pub fn erase_regions<T>(self, value: T) -> T
         T: TypeFoldable<'tcx>,
     {
         // If there's nothing to erase avoid performing the query at all
-        if !value
-            .has_type_flags(TypeFlags::HAS_RE_LATE_BOUND | TypeFlags::HAS_POTENTIAL_FREE_REGIONS)
-        {
+        if !value.has_type_flags(TypeFlags::HAS_RE_LATE_BOUND | TypeFlags::HAS_FREE_REGIONS) {
             return value;
         }
         debug!("erase_regions({:?})", value);