Use a builder instead of boolean/option arguments
This commit is contained in:
parent
cf9f53c837
commit
2b444672e1
12 changed files with 45 additions and 56 deletions
|
@ -161,7 +161,7 @@ fn test_harness(file_text: &str, span_labels: Vec<SpanLabel>, expected_output: &
|
|||
false,
|
||||
TerminalUrl::No,
|
||||
);
|
||||
let handler = Handler::with_emitter(true, None, Box::new(emitter), None);
|
||||
let handler = Handler::with_emitter(Box::new(emitter));
|
||||
#[allow(rustc::untranslatable_diagnostic)]
|
||||
handler.span_err(msp, "foo");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue