@@ -176,7 +176,7 @@ fn require_same_types<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
176176 } )
177177}
178178
179- pub fn check_main_fn_ty < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > , main_def_id : DefId ) {
179+ fn check_main_fn_ty < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > , main_def_id : DefId ) {
180180 let main_id = tcx. hir ( ) . as_local_hir_id ( main_def_id) . unwrap ( ) ;
181181 let main_span = tcx. def_span ( main_def_id) ;
182182 let main_t = tcx. type_of ( main_def_id) ;
@@ -241,7 +241,7 @@ pub fn check_main_fn_ty<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, main_def_id: DefI
241241 }
242242}
243243
244- pub fn check_start_fn_ty < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > , start_def_id : DefId ) {
244+ fn check_start_fn_ty < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > , start_def_id : DefId ) {
245245 let start_id = tcx. hir ( ) . as_local_hir_id ( start_def_id) . unwrap ( ) ;
246246 let start_span = tcx. def_span ( start_def_id) ;
247247 let start_t = tcx. type_of ( start_def_id) ;
@@ -298,7 +298,7 @@ pub fn check_start_fn_ty<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, start_def_id: De
298298 }
299299}
300300
301- pub fn check_for_entry_fn < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ) {
301+ fn check_for_entry_fn < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ) {
302302 match tcx. entry_fn ( LOCAL_CRATE ) {
303303 Some ( ( def_id, EntryFnType :: Main ) ) => check_main_fn_ty ( tcx, def_id) ,
304304 Some ( ( def_id, EntryFnType :: Start ) ) => check_start_fn_ty ( tcx, def_id) ,
0 commit comments