@@ -464,7 +464,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
464464 self . astconv . ct_infer ( ty, Some ( param) , inf. span ) . into ( )
465465 } else {
466466 self . inferred_params . push ( inf. span ) ;
467- tcx. const_error ( ty) . into ( )
467+ tcx. const_error_misc ( ty) . into ( )
468468 }
469469 }
470470 _ => unreachable ! ( ) ,
@@ -518,7 +518,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
518518 . no_bound_vars ( )
519519 . expect ( "const parameter types cannot be generic" ) ;
520520 if let Err ( guar) = ty. error_reported ( ) {
521- return tcx. const_error_with_guaranteed ( ty, guar) . into ( ) ;
521+ return tcx. const_error ( ty, guar) . into ( ) ;
522522 }
523523 if !infer_args && has_default {
524524 tcx. const_param_default ( param. def_id ) . subst ( tcx, substs. unwrap ( ) ) . into ( )
@@ -527,7 +527,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
527527 self . astconv . ct_infer ( ty, Some ( param) , self . span ) . into ( )
528528 } else {
529529 // We've already errored above about the mismatch.
530- tcx. const_error ( ty) . into ( )
530+ tcx. const_error_misc ( ty) . into ( )
531531 }
532532 }
533533 }
@@ -1387,7 +1387,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
13871387 term = match def_kind {
13881388 hir:: def:: DefKind :: AssocTy => tcx. ty_error ( reported) . into ( ) ,
13891389 hir:: def:: DefKind :: AssocConst => tcx
1390- . const_error_with_guaranteed (
1390+ . const_error (
13911391 tcx. type_of ( assoc_item_def_id)
13921392 . subst ( tcx, projection_ty. skip_binder ( ) . substs ) ,
13931393 reported,
0 commit comments