diff --git a/clippy_lints/src/utils/higher.rs b/clippy_lints/src/utils/higher.rs index 10a1c18e182..494182ae545 100644 --- a/clippy_lints/src/utils/higher.rs +++ b/clippy_lints/src/utils/higher.rs @@ -76,8 +76,8 @@ pub fn range(expr: &hir::Expr) -> Option { end: None, limits: ast::RangeLimits::HalfOpen, }) - } else if match_path(path, &paths::RANGE_INCLUSIVE_NON_EMPTY_STD) || - match_path(path, &paths::RANGE_INCLUSIVE_NON_EMPTY) { + } else if match_path(path, &paths::RANGE_INCLUSIVE_STD) || + match_path(path, &paths::RANGE_INCLUSIVE) { Some(Range { start: get_field("start", fields), end: get_field("end", fields), diff --git a/clippy_lints/src/utils/paths.rs b/clippy_lints/src/utils/paths.rs index f7e0d0c6aae..133a2d65f0e 100644 --- a/clippy_lints/src/utils/paths.rs +++ b/clippy_lints/src/utils/paths.rs @@ -49,8 +49,6 @@ pub const RANGE_FROM_STD: [&'static str; 3] = ["std", "ops", "RangeFrom"]; pub const RANGE_FULL: [&'static str; 3] = ["core", "ops", "RangeFull"]; pub const RANGE_FULL_STD: [&'static str; 3] = ["std", "ops", "RangeFull"]; pub const RANGE_INCLUSIVE: [&'static str; 3] = ["core", "ops", "RangeInclusive"]; -pub const RANGE_INCLUSIVE_NON_EMPTY: [&'static str; 4] = ["core", "ops", "RangeInclusive", "NonEmpty"]; -pub const RANGE_INCLUSIVE_NON_EMPTY_STD: [&'static str; 4] = ["std", "ops", "RangeInclusive", "NonEmpty"]; pub const RANGE_INCLUSIVE_STD: [&'static str; 3] = ["std", "ops", "RangeInclusive"]; pub const RANGE_STD: [&'static str; 3] = ["std", "ops", "Range"]; pub const RANGE_TO: [&'static str; 3] = ["core", "ops", "RangeTo"];