about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSparrowLii <liyuan179@huawei.com>2022-06-08 22:44:26 +0800
committerSparrowLii <liyuan179@huawei.com>2022-06-08 22:44:26 +0800
commit726b35bd701457bc632ca1c5cdb5070a71d6de03 (patch)
tree2edc50433d15fef19f4775952c72ae94fddba2bf
parent65a5b082bc8c44c2281914381c07bd4dd9d11a2b (diff)
downloadrust-726b35bd701457bc632ca1c5cdb5070a71d6de03.tar.gz
rust-726b35bd701457bc632ca1c5cdb5070a71d6de03.zip
correct the test if IntervalSet
-rw-r--r--compiler/rustc_index/src/interval/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_index/src/interval/tests.rs b/compiler/rustc_index/src/interval/tests.rs
index d90b449f326..375af60f662 100644
--- a/compiler/rustc_index/src/interval/tests.rs
+++ b/compiler/rustc_index/src/interval/tests.rs
@@ -2,7 +2,7 @@ use super::*;
 
 #[test]
 fn insert_collapses() {
-    let mut set = IntervalSet::<u32>::new(3000);
+    let mut set = IntervalSet::<u32>::new(10000);
     set.insert_range(9831..=9837);
     set.insert_range(43..=9830);
     assert_eq!(set.iter_intervals().collect::<Vec<_>>(), [43..9838]);