Skip to content

Commit 0848d7a

Browse files
committed
Remove DynStar
1 parent 626592e commit 0848d7a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/flux-middle/src/rty/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1959,7 +1959,7 @@ impl<'tcx> ToRustc<'tcx> for BaseTy {
19591959
.map(|pred| pred.to_rustc(tcx))
19601960
.collect_vec();
19611961
let preds = tcx.mk_poly_existential_predicates(&preds);
1962-
ty::Ty::new_dynamic(tcx, preds, re.to_rustc(tcx), rustc_middle::ty::DynKind::Dyn)
1962+
ty::Ty::new_dynamic(tcx, preds, re.to_rustc(tcx))
19631963
}
19641964
BaseTy::Coroutine(def_id, resume_ty, upvars) => {
19651965
bug!("TODO: Generator {def_id:?} {resume_ty:?} {upvars:?}")

crates/flux-rustc-bridge/src/lowering.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ impl<'tcx> Lower<'tcx> for rustc_ty::Ty<'tcx> {
896896
let args = args.lower(tcx)?;
897897
Ok(Ty::mk_generator_witness(*did, args))
898898
}
899-
rustc_ty::Dynamic(predicates, region, rustc_ty::DynKind::Dyn) => {
899+
rustc_ty::Dynamic(predicates, region) => {
900900
let region = region.lower(tcx)?;
901901

902902
let exi_preds = List::from_vec(

crates/flux-rustc-bridge/src/ty/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ impl<'tcx> ToRustc<'tcx> for Ty {
963963
.collect_vec();
964964

965965
let preds = tcx.mk_poly_existential_predicates(&preds);
966-
rustc_ty::Ty::new_dynamic(tcx, preds, re.to_rustc(tcx), rustc_ty::DynKind::Dyn)
966+
rustc_ty::Ty::new_dynamic(tcx, preds, re.to_rustc(tcx))
967967
}
968968
TyKind::Coroutine(_, _) | TyKind::CoroutineWitness(_, _) => {
969969
bug!("TODO: to_rustc for `{self:?}`")

0 commit comments

Comments
 (0)