about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/json
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-07-26 11:17:35 +0000
committerbors <bors@rust-lang.org>2023-07-26 11:17:35 +0000
commit52bdc37727c03e1acf164c4fb44291c0921cb2d9 (patch)
tree249a6c61f65f1466e6bdbba7addc92447dbe7e75 /compiler/rustc_errors/src/json
parenta6236fa460811bbd4a08a94db249c344fa9f2220 (diff)
parent841f8dc19f3e0be4377efdf0fdd35191670308e5 (diff)
downloadrust-52bdc37727c03e1acf164c4fb44291c0921cb2d9.tar.gz
rust-52bdc37727c03e1acf164c4fb44291c0921cb2d9.zip
Auto merge of #114054 - oli-obk:cleanups, r=estebank
Split some functions with many arguments into builder pattern functions

r? `@estebank`

This doesn't resolve all of the ones in rustc, mostly because I need to do other cleanups in order to be able to use some builder derives from crates.io

Works around https://github.com/rust-lang/rust/issues/90672 by making `x test rustfmt --bless` format itself instead of testing that it is formatted
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();