@@ -8,30 +8,14 @@ use std::sync::atomic::Ordering;
88
99crate fn provide ( p : & mut Providers ) {
1010 * p = Providers {
11- normalize_generic_arg_after_erasing_regions : |tcx, goal| {
12- debug ! ( "normalize_generic_arg_after_erasing_regions (goal={:#?}) " , goal) ;
11+ try_normalize_generic_arg_after_erasing_regions : |tcx, goal| {
12+ debug ! ( "try_normalize_generic_arg_after_erasing_regions (goal={:#?}" , goal) ;
1313
1414 tcx. sess
1515 . perf_stats
1616 . normalize_generic_arg_after_erasing_regions
1717 . fetch_add ( 1 , Ordering :: Relaxed ) ;
1818
19- let ( param_env, goal) = goal. into_parts ( ) ;
20- tcx. try_normalize_erasing_regions ( param_env, goal) . unwrap_or_else ( |_| bug ! (
21- "Failed to normalize {:?}, maybe try to call `try_normalize_erasing_regions` instead" ,
22- goal
23- ) )
24- } ,
25- normalize_mir_const_after_erasing_regions : |tcx, goal| {
26- let ( param_env, goal) = goal. into_parts ( ) ;
27- tcx. try_normalize_erasing_regions ( param_env, goal) . unwrap_or_else ( |_| bug ! (
28- "Failed to normalize {:?}, maybe try to call `try_normalize_erasing_regions` instead" ,
29- goal
30- ) )
31- } ,
32- try_normalize_generic_arg_after_erasing_regions : |tcx, goal| {
33- debug ! ( "try_normalize_generic_arg_after_erasing_regions(goal={:#?}" , goal) ;
34-
3519 try_normalize_after_erasing_regions ( tcx, goal)
3620 } ,
3721 try_normalize_mir_const_after_erasing_regions : |tcx, goal| {
0 commit comments