Skip to content

Commit 64a88db

Browse files
committed
Update dtolnay's tests that now work
1 parent 63f95a4 commit 64a88db

File tree

5 files changed

+10
-33
lines changed

5 files changed

+10
-33
lines changed

src/test/ui/tuple/index-float.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
// check-pass
2+
13
fn main() {
24
let tuple = (((),),);
35

4-
let _ = tuple. 0.0; //~ ERROR unexpected token: `0.0`
6+
let _ = tuple. 0.0; // OK, whitespace
57

6-
let _ = tuple./*special cases*/0.0; //~ ERROR unexpected token: `0.0`
8+
let _ = tuple./*special cases*/0.0; // OK, comment
79
}

src/test/ui/tuple/index-float.stderr

-14
This file was deleted.

src/test/ui/tuple/index-invalid.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ error[E0609]: no field `1` on type `(((),),)`
22
--> $DIR/index-invalid.rs:2:22
33
|
44
LL | let _ = (((),),).1.0;
5-
| ^
5+
| ^^^
66

77
error[E0609]: no field `1` on type `((),)`
8-
--> $DIR/index-invalid.rs:4:24
8+
--> $DIR/index-invalid.rs:4:22
99
|
1010
LL | let _ = (((),),).0.1;
11-
| ^
11+
| ^^^
1212

1313
error[E0609]: no field `000` on type `(((),),)`
1414
--> $DIR/index-invalid.rs:6:22
1515
|
1616
LL | let _ = (((),),).000.000;
17-
| ^^^
17+
| ^^^^^^^
1818

1919
error: aborting due to 3 previous errors
2020

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// Broken by https://github.com/rust-lang/rust/pull/70420.
1+
// check-pass
22

33
macro_rules! m {
44
(.$l:literal) => {};
55
}
66

7-
m!(.0.0); //~ ERROR no rules expected the token `.`
7+
m!(.0.0); // OK, `0.0` after a dot is still a float token.
88

99
fn main() {}

src/test/ui/tuple/indexing-in-macro.stderr

-11
This file was deleted.

0 commit comments

Comments
 (0)