1
Fork 0

fix previous failures and address review

This commit is contained in:
b-naber 2022-03-22 10:38:46 +01:00
parent 6cf3409e16
commit 8ff1edbe5e
9 changed files with 212 additions and 174 deletions

View file

@ -43,7 +43,7 @@ impl<'tcx> TyCtxt<'tcx> {
// variables. We reject those here since `resolve_opt_const_arg`
// would fail otherwise
if ct.substs.has_infer_types_or_consts() {
return Err(ErrorHandled::TooGeneric);
bug!("did not expect inference variables here");
}
match ty::Instance::resolve_opt_const_arg(self, param_env, ct.def, ct.substs) {