@@ -26,7 +26,7 @@ use rustc_trait_selection::infer::InferCtxtExt;
26
26
use rustc_trait_selection:: regions:: InferCtxtRegionExt ;
27
27
use rustc_trait_selection:: traits:: outlives_bounds:: InferCtxtExt as _;
28
28
use rustc_trait_selection:: traits:: {
29
- self , FulfillmentError , ObligationCause , ObligationCauseCode , ObligationCtxt , Reveal ,
29
+ self , FulfillmentError , ObligationCause , ObligationCauseCode , ObligationCtxt ,
30
30
} ;
31
31
use tracing:: { debug, instrument} ;
32
32
@@ -223,7 +223,7 @@ fn compare_method_predicate_entailment<'tcx>(
223
223
}
224
224
225
225
let normalize_cause = traits:: ObligationCause :: misc ( impl_m_span, impl_m_def_id) ;
226
- let param_env = ty:: ParamEnv :: new ( tcx. mk_clauses ( & hybrid_preds) , Reveal :: UserFacing ) ;
226
+ let param_env = ty:: ParamEnv :: new ( tcx. mk_clauses ( & hybrid_preds) ) ;
227
227
let param_env = traits:: normalize_param_env_or_error ( tcx, param_env, normalize_cause) ;
228
228
debug ! ( caller_bounds=?param_env. caller_bounds( ) ) ;
229
229
@@ -508,7 +508,7 @@ pub(super) fn collect_return_position_impl_trait_in_trait_tys<'tcx>(
508
508
. into_iter ( )
509
509
. chain ( tcx. predicates_of ( trait_m. def_id ) . instantiate_own ( tcx, trait_to_impl_args) )
510
510
. map ( |( clause, _) | clause) ;
511
- let param_env = ty:: ParamEnv :: new ( tcx. mk_clauses_from_iter ( hybrid_preds) , Reveal :: UserFacing ) ;
511
+ let param_env = ty:: ParamEnv :: new ( tcx. mk_clauses_from_iter ( hybrid_preds) ) ;
512
512
let param_env = traits:: normalize_param_env_or_error (
513
513
tcx,
514
514
param_env,
@@ -1793,7 +1793,7 @@ fn compare_const_predicate_entailment<'tcx>(
1793
1793
. map ( |( predicate, _) | predicate) ,
1794
1794
) ;
1795
1795
1796
- let param_env = ty:: ParamEnv :: new ( tcx. mk_clauses ( & hybrid_preds) , Reveal :: UserFacing ) ;
1796
+ let param_env = ty:: ParamEnv :: new ( tcx. mk_clauses ( & hybrid_preds) ) ;
1797
1797
let param_env = traits:: normalize_param_env_or_error (
1798
1798
tcx,
1799
1799
param_env,
@@ -1946,7 +1946,7 @@ fn compare_type_predicate_entailment<'tcx>(
1946
1946
) ;
1947
1947
}
1948
1948
1949
- let param_env = ty:: ParamEnv :: new ( tcx. mk_clauses ( & hybrid_preds) , Reveal :: UserFacing ) ;
1949
+ let param_env = ty:: ParamEnv :: new ( tcx. mk_clauses ( & hybrid_preds) ) ;
1950
1950
let param_env = traits:: normalize_param_env_or_error ( tcx, param_env, normalize_cause) ;
1951
1951
debug ! ( caller_bounds=?param_env. caller_bounds( ) ) ;
1952
1952
@@ -2306,7 +2306,7 @@ fn param_env_with_gat_bounds<'tcx>(
2306
2306
} ;
2307
2307
}
2308
2308
2309
- ty:: ParamEnv :: new ( tcx. mk_clauses ( & predicates) , Reveal :: UserFacing )
2309
+ ty:: ParamEnv :: new ( tcx. mk_clauses ( & predicates) )
2310
2310
}
2311
2311
2312
2312
/// Manually check here that `async fn foo()` wasn't matched against `fn foo()`,
0 commit comments