]> 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 7aed2a4288c8e8749d9eafb5feeef0a837fb7e2f..8d7e7e16e85cb738fc102c4d0e76c3b39c4f90da 100644 (file)
@@ -195,8 +195,8 @@ fn add_sty(&mut self, st: &ty::TyKind<'_>) {
                 self.add_ty(ty);
             }
 
-            &ty::Tuple(ref ts) => {
-                self.add_tys(&ts[..]);
+            &ty::Tuple(ref substs) => {
+                self.add_substs(substs);
             }
 
             &ty::FnDef(_, substs) => {
@@ -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);
+            }
             _ => {},
         }
     }