@@ -307,7 +307,7 @@ fn project_and_unify_type<'cx, 'tcx>(
307307/// them with a fully resolved type where possible. The return value
308308/// combines the normalized result and any additional obligations that
309309/// were incurred as result.
310- pub fn normalize < ' a , ' b , ' tcx , T > (
310+ pub ( crate ) fn normalize < ' a , ' b , ' tcx , T > (
311311 selcx : & ' a mut SelectionContext < ' b , ' tcx > ,
312312 param_env : ty:: ParamEnv < ' tcx > ,
313313 cause : ObligationCause < ' tcx > ,
@@ -321,7 +321,7 @@ where
321321 Normalized { value, obligations }
322322}
323323
324- pub fn normalize_to < ' a , ' b , ' tcx , T > (
324+ pub ( crate ) fn normalize_to < ' a , ' b , ' tcx , T > (
325325 selcx : & ' a mut SelectionContext < ' b , ' tcx > ,
326326 param_env : ty:: ParamEnv < ' tcx > ,
327327 cause : ObligationCause < ' tcx > ,
@@ -335,7 +335,7 @@ where
335335}
336336
337337/// As `normalize`, but with a custom depth.
338- pub fn normalize_with_depth < ' a , ' b , ' tcx , T > (
338+ pub ( crate ) fn normalize_with_depth < ' a , ' b , ' tcx , T > (
339339 selcx : & ' a mut SelectionContext < ' b , ' tcx > ,
340340 param_env : ty:: ParamEnv < ' tcx > ,
341341 cause : ObligationCause < ' tcx > ,
@@ -351,7 +351,7 @@ where
351351}
352352
353353#[ instrument( level = "info" , skip( selcx, param_env, cause, obligations) ) ]
354- pub fn normalize_with_depth_to < ' a , ' b , ' tcx , T > (
354+ pub ( crate ) fn normalize_with_depth_to < ' a , ' b , ' tcx , T > (
355355 selcx : & ' a mut SelectionContext < ' b , ' tcx > ,
356356 param_env : ty:: ParamEnv < ' tcx > ,
357357 cause : ObligationCause < ' tcx > ,
@@ -371,7 +371,7 @@ where
371371}
372372
373373#[ instrument( level = "info" , skip( selcx, param_env, cause, obligations) ) ]
374- pub fn try_normalize_with_depth_to < ' a , ' b , ' tcx , T > (
374+ pub ( crate ) fn try_normalize_with_depth_to < ' a , ' b , ' tcx , T > (
375375 selcx : & ' a mut SelectionContext < ' b , ' tcx > ,
376376 param_env : ty:: ParamEnv < ' tcx > ,
377377 cause : ObligationCause < ' tcx > ,
0 commit comments