Skip to content

Commit 2712651

Browse files
committed
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.
1 parent f032cba commit 2712651

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/librustc_driver/lib.rs

+8
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ pub fn run_compiler(
179179
registry: diagnostics_registry(),
180180
};
181181
callbacks.config(&mut config);
182+
// lol no lints at all
183+
config.override_queries = Some(|_, providers, _| {
184+
providers.lint_mod = |_, _| {};
185+
});
182186
config
183187
};
184188

@@ -256,6 +260,10 @@ pub fn run_compiler(
256260
};
257261

258262
callbacks.config(&mut config);
263+
// lol no lints at all
264+
config.override_queries = Some(|_, providers, _| {
265+
providers.lint_mod = |_, _| {};
266+
});
259267

260268
interface::run_compiler(config, |compiler| {
261269
let sess = compiler.session();

0 commit comments

Comments
 (0)