Re-exportsΒ§
use rustc_ast::token::LitKind;πuse rustc_ast::Expr;πuse rustc_ast::ExprKind;πuse rustc_ast::MethodCall;πuse rustc_ast::UnOp;πuse rustc_lint_defs::declare_lint;πuse rustc_lint_defs::declare_lint_pass;πuse crate::diagnostics::AmbiguousNegativeLiteralsCurrentBehaviorSuggestion;πuse crate::diagnostics::AmbiguousNegativeLiteralsDiag;πuse crate::diagnostics::AmbiguousNegativeLiteralsNegativeLiteralSuggestion;πuse crate::EarlyContext;πuse crate::EarlyLintPass;πuse crate::LintContext;π
StructsΒ§
StaticsΒ§
- AMBIGUOUS_
NEGATIVE_ LITERALS - The
ambiguous_negative_literalslint checks for cases that are confusing between a negative literal and a negation thatβs not part of the literal.