Skip to content

Commit ce031b4

Browse files
committed
Auto merge of #1633 - RalfJung:rustup, r=RalfJung
rustup; test sorting for provenance-correctness
2 parents 746ea5b + 7a2c2f8 commit ce031b4

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
172acf8f61018df3719e42e633ffd62ebecaa1e7
1+
828461b4b27c4a955587887936e54057efc5e2c1

tests/run-pass/vec.rs

+8
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ fn push_str_ptr_stable() {
130130
assert_eq!(format!("{}", hello), "hello");
131131
}
132132

133+
fn sort() {
134+
let mut v = vec![1; 20];
135+
v.push(0);
136+
v.sort();
137+
}
138+
133139
fn main() {
134140
assert_eq!(vec_reallocate().len(), 5);
135141

@@ -154,4 +160,6 @@ fn main() {
154160
vec_extend_ptr_stable();
155161
vec_truncate_ptr_stable();
156162
push_str_ptr_stable();
163+
164+
sort();
157165
}

0 commit comments

Comments
 (0)