Skip to main content

Module tautological_compare

Module tautological_compare 

Source

Re-exportsยง

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; ๐Ÿ”’

Staticsยง

TAUTOLOGICAL_COMPARE

Functionsยง

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 ๐Ÿ”’