Skip to content

Commit

Permalink
Auto merge of #1633 - RalfJung:rustup, r=RalfJung
Browse files Browse the repository at this point in the history
rustup; test sorting for provenance-correctness
  • Loading branch information
bors committed Nov 22, 2020
2 parents 746ea5b + 7a2c2f8 commit ce031b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
172acf8f61018df3719e42e633ffd62ebecaa1e7
828461b4b27c4a955587887936e54057efc5e2c1
8 changes: 8 additions & 0 deletions tests/run-pass/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ fn push_str_ptr_stable() {
assert_eq!(format!("{}", hello), "hello");
}

fn sort() {
let mut v = vec![1; 20];
v.push(0);
v.sort();
}

fn main() {
assert_eq!(vec_reallocate().len(), 5);

Expand All @@ -154,4 +160,6 @@ fn main() {
vec_extend_ptr_stable();
vec_truncate_ptr_stable();
push_str_ptr_stable();

sort();
}

0 comments on commit ce031b4

Please sign in to comment.