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