Skip to content

Commit c14c7f2

Browse files
authored
Rollup merge of #120693 - nnethercote:invert-diagnostic-lints, r=davidtwco
Invert diagnostic lints. That is, change `diagnostic_outside_of_impl` and `untranslatable_diagnostic` from `allow` to `deny`, because more than half of the compiler has been converted to use translated diagnostics. This commit removes more `deny` attributes than it adds `allow` attributes, which proves that this change is warranted. r? ````@davidtwco````
2 parents 1e8cb65 + c7a88b3 commit c14c7f2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/bin/miri.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#![allow(
33
clippy::manual_range_contains,
44
clippy::useless_format,
5-
clippy::field_reassign_with_default
5+
clippy::field_reassign_with_default,
6+
rustc::diagnostic_outside_of_impl,
7+
rustc::untranslatable_diagnostic,
68
)]
79

810
extern crate rustc_data_structures;

src/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@
3333
clippy::bool_to_int_with_if,
3434
clippy::box_default,
3535
clippy::needless_question_mark,
36+
rustc::diagnostic_outside_of_impl,
3637
// We are not implementing queries here so it's fine
37-
rustc::potential_query_instability
38+
rustc::potential_query_instability,
39+
rustc::untranslatable_diagnostic,
3840
)]
3941
#![warn(
4042
rust_2018_idioms,

0 commit comments

Comments
 (0)