@@ -176,7 +176,7 @@ fn require_same_types<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
176
176
} )
177
177
}
178
178
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 ) {
180
180
let main_id = tcx. hir ( ) . as_local_hir_id ( main_def_id) . unwrap ( ) ;
181
181
let main_span = tcx. def_span ( main_def_id) ;
182
182
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
241
241
}
242
242
}
243
243
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 ) {
245
245
let start_id = tcx. hir ( ) . as_local_hir_id ( start_def_id) . unwrap ( ) ;
246
246
let start_span = tcx. def_span ( start_def_id) ;
247
247
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
298
298
}
299
299
}
300
300
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 > ) {
302
302
match tcx. entry_fn ( LOCAL_CRATE ) {
303
303
Some ( ( def_id, EntryFnType :: Main ) ) => check_main_fn_ty ( tcx, def_id) ,
304
304
Some ( ( def_id, EntryFnType :: Start ) ) => check_start_fn_ty ( tcx, def_id) ,
0 commit comments