rust/compiler/rustc_middle/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
..
dep_graph Restrict access to crate_name. 2021-06-02 18:35:32 +02:00
hir Revert "Reduce the amount of untracked state in TyCtxt" 2021-06-01 09:05:22 +02:00
ich Rename RealFileName::Named to LocalPath and Devirtualized to Remapped 2021-05-05 15:10:50 +01:00
infer Miscellaneous inlining improvements 2021-06-02 08:49:58 +02:00
middle Restrict access to crate_name. 2021-06-02 18:35:32 +02:00
mir Miscellaneous inlining improvements 2021-06-02 08:49:58 +02:00
query Restrict access to crate_name. 2021-06-02 18:35:32 +02:00
traits Make traits with GATs not object safe 2021-04-27 14:34:23 -04:00
ty Rollup merge of #85934 - tmiasko:is-union, r=jackh726 2021-06-03 14:35:41 +09:00
util Make panic/assert calls in rustc compatible with Rust 2021. 2021-02-03 22:42:53 +01:00
arena.rs Make THIR building a stealable query 2021-05-22 14:36:22 +02:00
lib.rs Remove unused feature gates 2021-05-31 13:55:43 +02:00
lint.rs Add a page on force-warns in unstable book 2021-06-02 18:07:39 +02:00
macros.rs Auto merge of #78779 - LeSeulArtichaut:ty-visitor-return, r=oli-obk 2020-11-17 12:24:34 +00:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
thir.rs Make THIR building a stealable query 2021-05-22 14:36:22 +02:00