[−][src]Function rustc_lint::types::lint_overflowing_range_endpoint
pub(in types) fn lint_overflowing_range_endpoint<'tcx>(
cx: &LateContext<'tcx>,
lit: &Lit,
lit_val: u128,
max: u128,
expr: &'tcx Expr<'tcx>,
parent_expr: &'tcx Expr<'tcx>,
ty: &str
) -> bool
Attempts to special-case the overflowing literal lint when it occurs as a range endpoint.
Returns true iff the lint was overridden.