rust/compiler/rustc_session/src
bors 595088d602 Auto merge of #85788 - rylev:force-warns, r=nikomatsakis
Support for force-warns

Implements https://github.com/rust-lang/rust/issues/85512.

This PR adds a new command line option `force-warns` which will force the provided lints to warn even if they are allowed by some other mechanism such as `#![allow(warnings)]`.

Some remaining issues:
* https://github.com/rust-lang/rust/issues/85512 mentions that `force-warns` should also be capable of taking lint groups instead of individual lints. This is not implemented.
* If a lint has a higher warning level than `warn`, this will cause that lint to warn instead. We probably want to allow the lint to error if it is set to a higher lint and is not allowed somewhere else.
* One test is currently ignored because it's not working - when a deny-by-default lint is allowed, it does not currently warn under `force-warns`. I'm not sure why, but I wanted to get this in before the weekend.

r? `@nikomatsakis`
2021-06-04 13:31:51 +00:00
..
cgu_reuse_tracker.rs Make Diagnostic::span_fatal unconditionally raise an error 2021-05-08 23:12:04 -04:00
code_stats.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
config.rs Auto merge of #85788 - rylev:force-warns, r=nikomatsakis 2021-06-04 13:31:51 +00:00
filesearch.rs Adjust target search algorithm for rustlib path 2021-05-10 19:15:19 +03:00
lib.rs remove cfg(bootstrap) 2021-05-24 11:07:48 -04:00
options.rs Auto merge of #85788 - rylev:force-warns, r=nikomatsakis 2021-06-04 13:31:51 +00:00
output.rs Use command line metadata path if provided 2021-05-28 22:24:24 -07:00
parse.rs Implement span quoting for proc-macros 2021-05-12 00:51:31 -04:00
search_paths.rs use strip_prefix over starts_with and manual slicing based on pattern length (clippy::manual_strip) 2020-09-17 10:13:16 +02:00
session.rs Miscellaneous inlining improvements 2021-06-02 08:49:58 +02:00
utils.rs Implement RFC 2951: Native link modifiers 2021-05-05 16:04:25 -07:00