mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 09:05:00 +00:00
Update to fix array_indexing failures: RangeInclusive::NonEmpty is gone
This commit is contained in:
parent
6b6253016f
commit
06472ca651
@ -76,8 +76,8 @@ pub fn range(expr: &hir::Expr) -> Option<Range> {
|
||||
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),
|
||||
|
@ -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"];
|
||||
|
Loading…
Reference in New Issue
Block a user