use rustc_const_math::ConstInt;
use rustc::hir::*;
use syntax::ast::RangeLimits;
-use utils;
+use utils::{self, higher};
/// **What it does:** Check for out of bounds array indexing with a constant index.
///
}
// Index is a constant range
- if let Some(range) = utils::unsugar_range(index) {
+ if let Some(range) = higher::range(index) {
let start = range.start
.map(|start| eval_const_expr_partial(cx.tcx, start, ExprTypeChecked, None))
.map(|v| v.ok());
}
}
- if let Some(range) = utils::unsugar_range(index) {
+ if let Some(range) = higher::range(index) {
// Full ranges are always valid
if range.start.is_none() && range.end.is_none() {
return;