Rollup merge of #133545 - clubby789:symbol-intern-lit, r=jieyouxu
Lint against Symbol::intern on a string literal Disabled in tests where this doesn't make much sense
This commit is contained in:
commit
453a1a8b7f
20 changed files with 94 additions and 37 deletions
|
@ -907,6 +907,11 @@ pub(crate) struct QueryUntracked {
|
|||
#[diag(lint_span_use_eq_ctxt)]
|
||||
pub(crate) struct SpanUseEqCtxtDiag;
|
||||
|
||||
#[derive(LintDiagnostic)]
|
||||
#[diag(lint_symbol_intern_string_literal)]
|
||||
#[help]
|
||||
pub(crate) struct SymbolInternStringLiteralDiag;
|
||||
|
||||
#[derive(LintDiagnostic)]
|
||||
#[diag(lint_tykind_kind)]
|
||||
pub(crate) struct TykindKind {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue