Skip to content

Commit f51bed9

Browse files
committed
WIP: Fix yet another breakage
1 parent 79258d8 commit f51bed9

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2020-07-15
1+
nightly-2020-07-23

src/translate.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,9 +452,13 @@ impl<'a, 'tcx> TranslationContext<'a, 'tcx> {
452452
}
453453
PredicateKind::ConstEvaluatable(orig_did, orig_substs) => {
454454
if let Some((target_def_id, target_substs)) =
455-
self.translate_orig_substs(index_map, *orig_did, orig_substs)
455+
self.translate_orig_substs(index_map, orig_did.did, orig_substs)
456456
{
457-
PredicateKind::ConstEvaluatable(target_def_id, target_substs)
457+
use rustc_middle::ty::WithOptConstParam;
458+
// TODO: We could probably use translated version for
459+
// `WithOptConstParam::const_param_did`
460+
let const_param = WithOptConstParam::unknown(target_def_id);
461+
PredicateKind::ConstEvaluatable(const_param, target_substs)
458462
.to_predicate(self.tcx)
459463
} else {
460464
return None;

0 commit comments

Comments
 (0)