Skip to content

Commit

Permalink
WIP: Fix breakage due to rust-lang/rust#76244
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Nov 18, 2020
1 parent 874d37d commit ade4b12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2020-09-10
nightly-2020-09-15
3 changes: 2 additions & 1 deletion src/translate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,8 @@ impl<'a, 'tcx> TranslationContext<'a, 'tcx> {
self.translate(index_map, &c2),
)
.to_predicate(self.tcx),
// NOTE: Only used for Chalk trait solver
PredicateAtom::TypeWellFormedFromEnv(_) => return None,
})
}

Expand Down Expand Up @@ -503,7 +505,6 @@ impl<'a, 'tcx> TranslationContext<'a, 'tcx> {
.map(|target_preds| ParamEnv::new(
self.tcx.intern_predicates(&target_preds),
param_env.reveal(),
Some(orig_def_id),
))
}

Expand Down

0 comments on commit ade4b12

Please sign in to comment.