diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-07-25 09:58:29 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-07-25 13:25:53 +0000 |
| commit | 8d60f7573d375e4405d2ab0c7b5f20f2abf201dc (patch) | |
| tree | 0612b645caea3ef5b70216f40712727422531244 /compiler/rustc_errors/src/lib.rs | |
| parent | ff8fe76c0e36b65c038a080a8a8341024104d117 (diff) | |
| download | rust-8d60f7573d375e4405d2ab0c7b5f20f2abf201dc.tar.gz rust-8d60f7573d375e4405d2ab0c7b5f20f2abf201dc.zip | |
Remove some arguments that are always the same
Diffstat (limited to 'compiler/rustc_errors/src/lib.rs')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 12 |
1 files changed, 4 insertions, 8 deletions
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<NonZeroUsize>, sm: Option<Lrc<SourceMap>>, - fluent_bundle: Option<Lrc<FluentBundle>>, fallback_bundle: LazyFallbackBundle, - ice_file: Option<PathBuf>, ) -> 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, ) } |
