diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-07-25 10:27:34 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-07-25 13:51:15 +0000 |
| commit | 2b444672e10d1a019c194729b9e4800d39904459 (patch) | |
| tree | 7ff447565fc8c7c9a3a673b974db6b6dc2686066 /src/tools/rustfmt | |
| parent | cf9f53c83753e64d4e56fd188fa93ee8b49bf32b (diff) | |
| download | rust-2b444672e10d1a019c194729b9e4800d39904459.tar.gz rust-2b444672e10d1a019c194729b9e4800d39904459.zip | |
Use a builder instead of boolean/option arguments
Diffstat (limited to 'src/tools/rustfmt')
| -rw-r--r-- | src/tools/rustfmt/src/parse/session.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tools/rustfmt/src/parse/session.rs b/src/tools/rustfmt/src/parse/session.rs index 92d2425cd3b..6ce68c2c2fb 100644 --- a/src/tools/rustfmt/src/parse/session.rs +++ b/src/tools/rustfmt/src/parse/session.rs @@ -153,8 +153,6 @@ fn default_handler( )) }; Handler::with_emitter( - true, - None, Box::new(SilentOnIgnoredFilesEmitter { has_non_ignorable_parser_errors: false, source_map, @@ -162,7 +160,6 @@ fn default_handler( ignore_path_set, can_reset, }), - None, ) } @@ -234,7 +231,7 @@ impl ParseSess { } pub(crate) fn set_silent_emitter(&mut self) { - self.parse_sess.span_diagnostic = Handler::with_emitter(true, None, silent_emitter(), None); + self.parse_sess.span_diagnostic = Handler::with_emitter(silent_emitter()); } pub(crate) fn span_to_filename(&self, span: Span) -> FileName { |
