about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/json
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-07-25 10:27:34 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-07-25 13:51:15 +0000
commit2b444672e10d1a019c194729b9e4800d39904459 (patch)
tree7ff447565fc8c7c9a3a673b974db6b6dc2686066 /compiler/rustc_errors/src/json
parentcf9f53c83753e64d4e56fd188fa93ee8b49bf32b (diff)
downloadrust-2b444672e10d1a019c194729b9e4800d39904459.tar.gz
rust-2b444672e10d1a019c194729b9e4800d39904459.zip
Use a builder instead of boolean/option arguments
Diffstat (limited to 'compiler/rustc_errors/src/json')
-rw-r--r--compiler/rustc_errors/src/json/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/json/tests.rs b/compiler/rustc_errors/src/json/tests.rs
index db0dd4ffe8e..1f9a2981e02 100644
--- a/compiler/rustc_errors/src/json/tests.rs
+++ b/compiler/rustc_errors/src/json/tests.rs
@@ -64,7 +64,7 @@ fn test_positions(code: &str, span: (u32, u32), expected_output: SpanTestData) {
         );
 
         let span = Span::with_root_ctxt(BytePos(span.0), BytePos(span.1));
-        let handler = Handler::with_emitter(true, None, Box::new(je), None);
+        let handler = Handler::with_emitter(Box::new(je));
         handler.span_err(span, "foo");
 
         let bytes = output.lock().unwrap();