]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/ty/flags.rs
Run `rustfmt --file-lines ...` for changes from previous commits.
[rust.git] / src / librustc / ty / flags.rs
index cb4724adc932cf6e2abd192641f3ecbe8d22ca53..8d7e7e16e85cb738fc102c4d0e76c3b39c4f90da 100644 (file)
@@ -254,6 +254,9 @@ fn add_const(&mut self, c: &ty::Const<'_>) {
             ConstValue::Param(_) => {
                 self.add_flags(TypeFlags::HAS_FREE_LOCAL_NAMES | TypeFlags::HAS_PARAMS);
             }
+            ConstValue::Placeholder(_) => {
+                self.add_flags(TypeFlags::HAS_FREE_REGIONS | TypeFlags::HAS_CT_PLACEHOLDER);
+            }
             _ => {},
         }
     }