Update tests

This commit is contained in:
topecongiro 2017-08-27 14:41:30 +09:00
parent fd10d25680
commit 74834c3f7f
6 changed files with 10 additions and 52 deletions

View File

@ -80,11 +80,7 @@ fn arrays() {
0,
];
let y = [
/* comment */ 1,
2, /* post comment */
3,
];
let y = [/* comment */ 1, 2 /* post comment */, 3];
let xy = [
strukt {

View File

@ -208,12 +208,7 @@ fn arrays() {
0,
];
let y = [
// comment
1,
2, // post comment
3,
];
let y = [/* comment */ 1, 2 /* post comment */, 3];
let xy = [
strukt {

View File

@ -25,11 +25,7 @@ fn weird_comment(
// Does this work?
y: World,
) {
simple(
// does this preserve comments now?
42,
NoWay,
)
simple(/* does this preserve comments now? */ 42, NoWay)
}
fn generic<T>(arg: T) -> &SomeType

View File

@ -6,15 +6,8 @@ fn main() {
S(.., true) => (),
S(..) => (),
S(_) => (),
S(
// ..
..
) => (),
S(
// ..
..,
true,
) => (),
S(/* .. */ ..) => (),
S(/* .. */ .., true) => (),
}
match y {
@ -23,14 +16,7 @@ fn main() {
(.., true) => (),
(..) => (),
(_,) => (),
(
// ..
..
) => (),
(
// ..
..,
true,
) => (),
(/* .. */ ..) => (),
(/* .. */ .., true) => (),
}
}

View File

@ -7,12 +7,6 @@ fn main() {
Tup(_) => "nah",
Quad(_, _, x, _) => " also no rewrite",
Quad(x, ..) => "condense me pls",
Weird(
x,
_,
_,
// dont condense before
..
) => "pls work",
Weird(x, _, _, /* dont condense before */ ..) => "pls work",
}
}

View File

@ -2,22 +2,13 @@
fn types() {
let x: [Vec<_>] = [];
let y: *mut [SomeType; konst_funk()] = expr();
let z: (
// #digits
usize,
// exp
i16,
) = funk();
let z: (/* #digits */ usize, /* exp */ i16) = funk();
let z: (usize /* #digits */, i16 /* exp */) = funk();
}
struct F {
f: extern "C" fn(x: u8, ... /* comment */),
g: extern "C" fn(
x: u8,
// comment
...
),
g: extern "C" fn(x: u8, /* comment */ ...),
h: extern "C" fn(x: u8, ...),
i: extern "C" fn(
x: u8,