diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-07-25 13:09:53 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-07-31 07:19:23 +0000 |
| commit | 29de70da1be1c71b89b006f9955fedc70e084067 (patch) | |
| tree | dc69d034d4e34fda0f1600fed3bb9b7301193903 /compiler/rustc_errors/src/lib.rs | |
| parent | 3be07c116128527fd9b9392f819b0dc502ff9fe5 (diff) | |
| download | rust-29de70da1be1c71b89b006f9955fedc70e084067.tar.gz rust-29de70da1be1c71b89b006f9955fedc70e084067.zip | |
Replace the many arguments of `EmitterWriter::stderr` with builder methods
Diffstat (limited to 'compiler/rustc_errors/src/lib.rs')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index 3d1639db4af..02b77cecbe2 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -556,18 +556,7 @@ impl Handler { sm: Option<Lrc<SourceMap>>, fallback_bundle: LazyFallbackBundle, ) -> Self { - let emitter = Box::new(EmitterWriter::stderr( - ColorConfig::Auto, - sm, - None, - fallback_bundle, - false, - false, - None, - false, - false, - TerminalUrl::No, - )); + let emitter = Box::new(EmitterWriter::stderr(ColorConfig::Auto, fallback_bundle).sm(sm)); Self::with_emitter(emitter) } pub fn disable_warnings(mut self) -> Self { |
