From 8d60f7573d375e4405d2ab0c7b5f20f2abf201dc Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Tue, 25 Jul 2023 09:58:29 +0000 Subject: Remove some arguments that are always the same --- compiler/rustc_errors/src/lib.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'compiler/rustc_errors/src') diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index eae7a46e07a..93f77b9cccd 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -549,21 +549,17 @@ impl Drop for HandlerInner { impl Handler { pub fn with_tty_emitter( - color_config: ColorConfig, can_emit_warnings: bool, - treat_err_as_bug: Option, sm: Option>, - fluent_bundle: Option>, fallback_bundle: LazyFallbackBundle, - ice_file: Option, ) -> Self { Self::with_tty_emitter_and_flags( - color_config, + ColorConfig::Auto, sm, - fluent_bundle, + None, fallback_bundle, - HandlerFlags { can_emit_warnings, treat_err_as_bug, ..Default::default() }, - ice_file, + HandlerFlags { can_emit_warnings, treat_err_as_bug: None, ..Default::default() }, + None, ) } -- cgit 1.4.1-3-g733a5