Skip to content

Commit c096758

Browse files
committed
Remove unneeded pubs.
1 parent e2380fb commit c096758

File tree

1 file changed

+7
-7
lines changed
  • compiler/rustc_driver_impl/src

1 file changed

+7
-7
lines changed

compiler/rustc_driver_impl/src/lib.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ pub enum Compilation {
542542
}
543543

544544
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 {
546546
match self {
547547
Compilation::Stop => Compilation::Stop,
548548
Compilation::Continue => next(),
@@ -654,7 +654,7 @@ fn show_md_content_with_pager(content: &str, color: ColorConfig) {
654654
}
655655
}
656656

657-
pub fn try_process_rlink(sess: &Session, compiler: &interface::Compiler) -> Compilation {
657+
fn try_process_rlink(sess: &Session, compiler: &interface::Compiler) -> Compilation {
658658
if sess.opts.unstable_opts.link_only {
659659
if let Input::File(file) = &sess.io.input {
660660
let outputs = compiler.build_output_filenames(sess, &[]);
@@ -695,7 +695,7 @@ pub fn try_process_rlink(sess: &Session, compiler: &interface::Compiler) -> Comp
695695
}
696696
}
697697

698-
pub fn list_metadata(
698+
fn list_metadata(
699699
handler: &EarlyErrorHandler,
700700
sess: &Session,
701701
metadata_loader: &dyn MetadataLoader,
@@ -1181,7 +1181,7 @@ fn print_flag_list<T>(
11811181
///
11821182
/// So with all that in mind, the comments below have some more detail about the
11831183
/// 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> {
11851185
if args.is_empty() {
11861186
// user did not write `-v` nor `-Z unstable-options`, so do not
11871187
// include that extra information.
@@ -1280,9 +1280,9 @@ pub fn catch_with_exit_code(f: impl FnOnce() -> interface::Result<()>) -> i32 {
12801280
}
12811281
}
12821282

1283-
pub static ICE_PATH: OnceLock<Option<PathBuf>> = OnceLock::new();
1283+
static ICE_PATH: OnceLock<Option<PathBuf>> = OnceLock::new();
12841284

1285-
pub fn ice_path() -> &'static Option<PathBuf> {
1285+
fn ice_path() -> &'static Option<PathBuf> {
12861286
ICE_PATH.get_or_init(|| {
12871287
if !rustc_feature::UnstableFeatures::from_environment(None).is_nightly_build() {
12881288
return None;
@@ -1391,7 +1391,7 @@ pub fn install_ice_hook(bug_report_url: &'static str, extra_info: fn(&Handler))
13911391
///
13921392
/// When `install_ice_hook` is called, this function will be called as the panic
13931393
/// 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)) {
13951395
let fallback_bundle =
13961396
rustc_errors::fallback_fluent_bundle(crate::DEFAULT_LOCALE_RESOURCES.to_vec(), false);
13971397
let emitter = Box::new(rustc_errors::emitter::EmitterWriter::stderr(

0 commit comments

Comments
 (0)