]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_infer/src/infer/higher_ranked/mod.rs
make `PlaceholderConst` not store the type of the const
[rust.git] / compiler / rustc_infer / src / infer / higher_ranked / mod.rs
index ed257c144e0aacb3b1d9cf2d7da7cd2f907d7123..9bdd437333bb6360beca59f71c2ab89413274f53 100644 (file)
@@ -97,7 +97,7 @@ pub fn replace_bound_vars_with_placeholders<T>(&self, binder: ty::Binder<'tcx, T
                 self.tcx.mk_const(ty::ConstS {
                     kind: ty::ConstKind::Placeholder(ty::PlaceholderConst {
                         universe: next_universe,
-                        name: ty::BoundConst { var: bound_var, ty },
+                        name: bound_var,
                     }),
                     ty,
                 })