File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 13
13
//! previous lint state is pushed onto a stack and the ast is then recursed
14
14
//! upon. As the ast is traversed, this keeps track of the current lint level
15
15
//! for all lint attributes.
16
+ #![ deny( rustc:: untranslatable_diagnostic) ]
17
+ #![ deny( rustc:: diagnostic_outside_of_impl) ]
16
18
17
19
use self :: TargetLint :: * ;
18
20
@@ -965,6 +967,7 @@ pub trait LintContext: Sized {
965
967
/// Note that this function should only be called for [`LintExpectationId`]s
966
968
/// retrieved from the current lint pass. Buffered or manually created ids can
967
969
/// cause ICEs.
970
+ #[ rustc_lint_diagnostics]
968
971
fn fulfill_expectation ( & self , expectation : LintExpectationId ) {
969
972
// We need to make sure that submitted expectation ids are correctly fulfilled suppressed
970
973
// and stored between compilation sessions. To not manually do these steps, we simply create
@@ -1011,6 +1014,7 @@ impl<'tcx> LintContext for LateContext<'tcx> {
1011
1014
& * self . lint_store
1012
1015
}
1013
1016
1017
+ #[ rustc_lint_diagnostics]
1014
1018
fn lookup < S : Into < MultiSpan > > (
1015
1019
& self ,
1016
1020
lint : & ' static Lint ,
@@ -1045,6 +1049,7 @@ impl LintContext for EarlyContext<'_> {
1045
1049
self . builder . lint_store ( )
1046
1050
}
1047
1051
1052
+ #[ rustc_lint_diagnostics]
1048
1053
fn lookup < S : Into < MultiSpan > > (
1049
1054
& self ,
1050
1055
lint : & ' static Lint ,
You can’t perform that action at this time.
0 commit comments