Skip to content

Commit 7eec3ff

Browse files
committed
Delete tuple unsizing
1 parent 871a83c commit 7eec3ff

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

tests/pass/unsized.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
11
//@revisions: stack tree
22
//@[tree]compile-flags: -Zmiri-tree-borrows
3-
#![feature(unsized_tuple_coercion)]
43
#![feature(unsized_fn_params)]
54
#![feature(custom_mir, core_intrinsics)]
65

76
use std::mem;
87

9-
fn unsized_tuple() {
10-
let x: &(i32, i32, [i32]) = &(0, 1, [2, 3]);
11-
let y: &(i32, i32, [i32]) = &(0, 1, [2, 3, 4]);
12-
let mut a = [y, x];
13-
a.sort();
14-
assert_eq!(a, [x, y]);
15-
16-
assert_eq!(&format!("{:?}", a), "[(0, 1, [2, 3]), (0, 1, [2, 3, 4])]");
17-
assert_eq!(mem::size_of_val(x), 16);
18-
}
19-
208
fn unsized_params() {
219
pub fn f0(_f: dyn FnOnce()) {}
2210
pub fn f1(_s: str) {}
@@ -56,7 +44,6 @@ fn unsized_field_projection() {
5644
}
5745

5846
fn main() {
59-
unsized_tuple();
6047
unsized_params();
6148
unsized_field_projection();
6249
}

0 commit comments

Comments
 (0)