1
Fork 0

FIx ICE on wf check for foreign fns

This commit is contained in:
Yuki Okushi 2020-12-31 11:25:53 +09:00
parent 507bff92fa
commit 7008911080
4 changed files with 50 additions and 1 deletions

View file

@ -51,7 +51,7 @@ impl<'tcx> CheckWfFcxBuilder<'tcx> {
let fcx = FnCtxt::new(&inh, param_env, id);
if !inh.tcx.features().trivial_bounds {
// As predicates are cached rather than obligations, this
// needsto be called first so that they are checked with an
// needs to be called first so that they are checked with an
// empty `param_env`.
check_false_global_bounds(&fcx, span, id);
}