fix previous failures and address review
This commit is contained in:
parent
6cf3409e16
commit
8ff1edbe5e
9 changed files with 212 additions and 174 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue