Skip to content

Commit 63f18eb

Browse files
committed
Update test for empty_iterator_range lint
see #100635
1 parent 474517e commit 63f18eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/core/tests/iter/range.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,8 @@ fn test_range_inclusive_size_hint() {
460460

461461
#[test]
462462
fn test_double_ended_range() {
463+
#![cfg_attr(not(bootstrap), allow(empty_iterator_range))]
464+
463465
assert_eq!((11..14).rev().collect::<Vec<_>>(), [13, 12, 11]);
464466
for _ in (10..0).rev() {
465467
panic!("unreachable");

0 commit comments

Comments
 (0)