From f794bca94a1afbbcb2323269d0ed812b5d04f4a9 Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Fri, 24 Jul 2020 10:39:17 -0400 Subject: [PATCH] Don't run any lints at all ever This is still running some things, not sure why. ``` warning: hidden lifetime parameters in types are deprecated --> ui/lint/reasons.rs:21:29 | 21 | fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { | ^^^^^^^^^^^^^^- help: indicate the anonymous lifetime: `<'_>` | = note: explicit anonymous lifetimes aid reasoning about ownership note: the lint level is defined here --> ui/lint/reasons.rs:5:9 | 5 | #![warn(elided_lifetimes_in_paths, | ^^^^^^^^^^^^^^^^^^^^^^^^^ ``` However most of the lints have gone away. --- src/librustc_driver/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs index ab4eac9440b41..eb3fa31fdc8df 100644 --- a/src/librustc_driver/lib.rs +++ b/src/librustc_driver/lib.rs @@ -179,6 +179,10 @@ pub fn run_compiler( registry: diagnostics_registry(), }; callbacks.config(&mut config); + // lol no lints at all + config.override_queries = Some(|_, providers, _| { + providers.lint_mod = |_, _| {}; + }); config }; @@ -256,6 +260,10 @@ pub fn run_compiler( }; callbacks.config(&mut config); + // lol no lints at all + config.override_queries = Some(|_, providers, _| { + providers.lint_mod = |_, _| {}; + }); interface::run_compiler(config, |compiler| { let sess = compiler.session();