X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_typeck%2Fsrc%2Fcollect.rs;h=359a79e9979edc40cee49682e60d30b1ff5ff35f;hb=a842357d37b0c043ccfeccc568cbf597d217d887;hp=afc8a9600ad48d4c0c2e524ea39f10fe861ca41d;hpb=fdf3c0fc4409a380c26007b8a19efaf548ea1253;p=rust.git diff --git a/compiler/rustc_typeck/src/collect.rs b/compiler/rustc_typeck/src/collect.rs index afc8a9600ad..359a79e9979 100644 --- a/compiler/rustc_typeck/src/collect.rs +++ b/compiler/rustc_typeck/src/collect.rs @@ -2393,7 +2393,6 @@ fn visit_anon_const(&mut self, c: &'tcx hir::AnonConst) { let def_id = self.tcx.hir().local_def_id(c.hir_id); let ct = ty::Const::from_anon_const(self.tcx, def_id); if let ty::ConstKind::Unevaluated(uv) = ct.kind() { - assert_eq!(uv.promoted, ()); let span = self.tcx.hir().span(c.hir_id); self.preds.insert(( ty::Binder::dummy(ty::PredicateKind::ConstEvaluatable(uv))