Skip to main content Module tautological_compare Copy item path Source use super::TautologicalCompare ; ๐ use crate::linter::LateLintPass ; ๐ use crate::linter::LintContext ; ๐ use crate::sol::Severity ; ๐ use crate::sol::SolLint ; ๐ use crate::sol::analysis::cast_type ; ๐ use solar::ast::BinOpKind; ๐ use solar::ast::Lit; ๐ use solar::ast::LitKind; ๐ use solar::sema::Gcx; ๐ use solar::sema::hir; ๐ use solar::sema::hir::Expr; ๐ use solar::sema::hir::ExprKind; ๐ use solar::sema::ty::TyKind; ๐ TAUTOLOGICAL_COMPARE exprs_equal ๐ Structural equality for side-effect-free expressions. Anything else (notably arbitrary calls,
which may return different values, and the mutating ++/--) is treated as unequal. literals_equal ๐