Skip to content

Commit ed2ec81

Browse files
committed
Auto merge of rust-lang#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 rust-lang#90672 by making `x test rustfmt --bless` format itself instead of testing that it is formatted
2 parents 61e0aac + 3fb714d commit ed2ec81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/doc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ fn check_code(cx: &LateContext<'_>, text: &str, edition: Edition, span: Span) {
729729
false,
730730
TerminalUrl::No,
731731
);
732-
let handler = Handler::with_emitter(false, None, Box::new(emitter), None);
732+
let handler = Handler::with_emitter(Box::new(emitter)).disable_warnings();
733733
let sess = ParseSess::with_span_handler(handler, sm);
734734

735735
let mut parser = match maybe_new_parser_from_source_str(&sess, filename, code) {

0 commit comments

Comments
 (0)