diff options
| author | Nadrieril <nadrieril+git@gmail.com> | 2024-08-09 09:52:12 +0200 |
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2024-09-03 19:14:19 +0200 |
| commit | 040239465aefc09f8c837ff9d4d66ca6297e5c5c (patch) | |
| tree | eecca87b57c05395eb5c3ed691458cde010c21e3 /compiler/rustc_lint/src/lints.rs | |
| parent | 6199b69c53a8c275ca3cd59647ea0af5ca29aae2 (diff) | |
| download | rust-040239465aefc09f8c837ff9d4d66ca6297e5c5c.tar.gz rust-040239465aefc09f8c837ff9d4d66ca6297e5c5c.zip | |
Add an internal lint that warns when accessing untracked data
Diffstat (limited to 'compiler/rustc_lint/src/lints.rs')
| -rw-r--r-- | compiler/rustc_lint/src/lints.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/lints.rs b/compiler/rustc_lint/src/lints.rs index 7ca282b7c85..9050f36acba 100644 --- a/compiler/rustc_lint/src/lints.rs +++ b/compiler/rustc_lint/src/lints.rs @@ -895,6 +895,13 @@ pub(crate) struct QueryInstability { } #[derive(LintDiagnostic)] +#[diag(lint_query_untracked)] +#[note] +pub(crate) struct QueryUntracked { + pub method: Symbol, +} + +#[derive(LintDiagnostic)] #[diag(lint_span_use_eq_ctxt)] pub(crate) struct SpanUseEqCtxtDiag; |
