Skip to content

Commit a3dfd82

Browse files
committed
Use a builder instead of boolean/option arguments
1 parent 6013a80 commit a3dfd82

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/parse/session.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,16 +153,13 @@ fn default_handler(
153153
))
154154
};
155155
Handler::with_emitter(
156-
true,
157-
None,
158156
Box::new(SilentOnIgnoredFilesEmitter {
159157
has_non_ignorable_parser_errors: false,
160158
source_map,
161159
emitter,
162160
ignore_path_set,
163161
can_reset,
164162
}),
165-
None,
166163
)
167164
}
168165

@@ -234,7 +231,7 @@ impl ParseSess {
234231
}
235232

236233
pub(crate) fn set_silent_emitter(&mut self) {
237-
self.parse_sess.span_diagnostic = Handler::with_emitter(true, None, silent_emitter(), None);
234+
self.parse_sess.span_diagnostic = Handler::with_emitter(silent_emitter());
238235
}
239236

240237
pub(crate) fn span_to_filename(&self, span: Span) -> FileName {

0 commit comments

Comments
 (0)