Skip to main content

Module precedence

Module precedence 

Source

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Β§

Precedence

StaticsΒ§

AMBIGUOUS_NEGATIVE_LITERALS
The ambiguous_negative_literals lint checks for cases that are confusing between a negative literal and a negation that’s not part of the literal.