@@ -545,7 +545,7 @@ pub enum Compilation {
545
545
}
546
546
547
547
impl Compilation {
548
- pub fn and_then<F : FnOnce ( ) -> Compilation >( self , next: F ) -> Compilation {
548
+ fn and_then<F : FnOnce ( ) -> Compilation >( self , next: F ) -> Compilation {
549
549
match self {
550
550
Compilation :: Stop => Compilation :: Stop ,
551
551
Compilation :: Continue => next( ) ,
@@ -657,7 +657,7 @@ fn show_md_content_with_pager(content: &str, color: ColorConfig) {
657
657
}
658
658
}
659
659
660
- pub fn try_process_rlink( sess: & Session , compiler: & interface:: Compiler ) -> Compilation {
660
+ fn try_process_rlink( sess: & Session , compiler: & interface:: Compiler ) -> Compilation {
661
661
if sess. opts. unstable_opts. link_only {
662
662
if let Input :: File ( file) = & sess. io. input {
663
663
let outputs = compiler. build_output_filenames( sess, & [ ] ) ;
@@ -698,7 +698,7 @@ pub fn try_process_rlink(sess: &Session, compiler: &interface::Compiler) -> Comp
698
698
}
699
699
}
700
700
701
- pub fn list_metadata(
701
+ fn list_metadata(
702
702
handler: & EarlyErrorHandler ,
703
703
sess: & Session ,
704
704
metadata_loader: & dyn MetadataLoader ,
@@ -1184,7 +1184,7 @@ fn print_flag_list<T>(
1184
1184
///
1185
1185
/// So with all that in mind, the comments below have some more detail about the
1186
1186
/// contortions done here to get things to work out correctly.
1187
- pub fn handle_options( handler: & EarlyErrorHandler , args: & [ String ] ) -> Option <getopts:: Matches > {
1187
+ fn handle_options( handler: & EarlyErrorHandler , args: & [ String ] ) -> Option <getopts:: Matches > {
1188
1188
if args. is_empty( ) {
1189
1189
// user did not write `-v` nor `-Z unstable-options`, so do not
1190
1190
// include that extra information.
@@ -1283,9 +1283,9 @@ pub fn catch_with_exit_code(f: impl FnOnce() -> interface::Result<()>) -> i32 {
1283
1283
}
1284
1284
}
1285
1285
1286
- pub static ICE_PATH : OnceLock <Option <PathBuf >> = OnceLock :: new( ) ;
1286
+ static ICE_PATH : OnceLock <Option <PathBuf >> = OnceLock :: new( ) ;
1287
1287
1288
- pub fn ice_path( ) -> & ' static Option <PathBuf > {
1288
+ fn ice_path( ) -> & ' static Option <PathBuf > {
1289
1289
ICE_PATH . get_or_init( || {
1290
1290
if !rustc_feature:: UnstableFeatures :: from_environment( None ) . is_nightly_build( ) {
1291
1291
return None ;
@@ -1394,7 +1394,7 @@ pub fn install_ice_hook(bug_report_url: &'static str, extra_info: fn(&Handler))
1394
1394
///
1395
1395
/// When `install_ice_hook` is called, this function will be called as the panic
1396
1396
/// hook.
1397
- pub fn report_ice( info: & panic:: PanicInfo <' _>, bug_report_url: & str , extra_info: fn ( & Handler ) ) {
1397
+ fn report_ice( info: & panic:: PanicInfo <' _>, bug_report_url: & str , extra_info: fn ( & Handler ) ) {
1398
1398
let fallback_bundle =
1399
1399
rustc_errors:: fallback_fluent_bundle( crate :: DEFAULT_LOCALE_RESOURCES . to_vec( ) , false ) ;
1400
1400
let emitter = Box :: new( rustc_errors:: emitter:: EmitterWriter :: stderr(
0 commit comments