rustc_hir::hir

Function is_range_literal

source
pub fn is_range_literal(expr: &Expr<'_>) -> bool
Expand description

Checks if the specified expression is a built-in range literal. (See: LoweringContext::lower_expr()).