Skip to content

Commit

Permalink
Update UI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov committed Feb 26, 2018
1 parent cdbd8c2 commit fa2d9fc
Show file tree
Hide file tree
Showing 1,200 changed files with 6,168 additions and 6,168 deletions.
2 changes: 1 addition & 1 deletion src/test/ui-fulldeps/custom-derive/issue-36935.stderr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
error: proc-macro derive panicked
--> $DIR/issue-36935.rs:18:15
|
18 | #[derive(Foo, Bar)] //~ ERROR proc-macro derive panicked
LL | #[derive(Foo, Bar)] //~ ERROR proc-macro derive panicked
| ^^^
|
= help: message: lolnope
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui-fulldeps/deprecated-derive.stderr
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
warning: derive(Encodable) is deprecated in favor of derive(RustcEncodable)
--> $DIR/deprecated-derive.rs:18:10
|
18 | #[derive(Encodable)]
LL | #[derive(Encodable)]
| ^^^^^^^^^

4 changes: 2 additions & 2 deletions src/test/ui-fulldeps/lint-group-plugin.stderr
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
warning: item is named 'lintme'
--> $DIR/lint-group-plugin.rs:18:1
|
18 | fn lintme() { } //~ WARNING item is named 'lintme'
LL | fn lintme() { } //~ WARNING item is named 'lintme'
| ^^^^^^^^^^^^^^^
|
= note: #[warn(test_lint)] on by default

warning: item is named 'pleaselintme'
--> $DIR/lint-group-plugin.rs:19:1
|
19 | fn pleaselintme() { } //~ WARNING item is named 'pleaselintme'
LL | fn pleaselintme() { } //~ WARNING item is named 'pleaselintme'
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(please_lint)] on by default
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui-fulldeps/lint-plugin-cmdline-allow.stderr
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
warning: function is never used: `lintme`
--> $DIR/lint-plugin-cmdline-allow.rs:20:1
|
20 | fn lintme() { }
LL | fn lintme() { }
| ^^^^^^^^^^^
|
note: lint level defined here
--> $DIR/lint-plugin-cmdline-allow.rs:17:9
|
17 | #![warn(unused)]
LL | #![warn(unused)]
| ^^^^^^
= note: #[warn(dead_code)] implied by #[warn(unused)]

2 changes: 1 addition & 1 deletion src/test/ui-fulldeps/lint-plugin-cmdline-load.stderr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
warning: item is named 'lintme'
--> $DIR/lint-plugin-cmdline-load.rs:18:1
|
18 | fn lintme() { } //~ WARNING item is named 'lintme'
LL | fn lintme() { } //~ WARNING item is named 'lintme'
| ^^^^^^^^^^^^^^^
|
= note: #[warn(test_lint)] on by default
Expand Down
8 changes: 4 additions & 4 deletions src/test/ui-fulldeps/lint-plugin-forbid-attrs.stderr
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
error: item is named 'lintme'
--> $DIR/lint-plugin-forbid-attrs.rs:18:1
|
18 | fn lintme() { } //~ ERROR item is named 'lintme'
LL | fn lintme() { } //~ ERROR item is named 'lintme'
| ^^^^^^^^^^^^^^^
|
note: lint level defined here
--> $DIR/lint-plugin-forbid-attrs.rs:16:11
|
16 | #![forbid(test_lint)]
LL | #![forbid(test_lint)]
| ^^^^^^^^^

error[E0453]: allow(test_lint) overruled by outer forbid(test_lint)
--> $DIR/lint-plugin-forbid-attrs.rs:20:9
|
16 | #![forbid(test_lint)]
LL | #![forbid(test_lint)]
| --------- `forbid` level set here
...
20 | #[allow(test_lint)]
LL | #[allow(test_lint)]
| ^^^^^^^^^ overruled by previous forbid

error: aborting due to 2 previous errors
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui-fulldeps/lint-plugin.stderr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
warning: item is named 'lintme'
--> $DIR/lint-plugin.rs:18:1
|
18 | fn lintme() { } //~ WARNING item is named 'lintme'
LL | fn lintme() { } //~ WARNING item is named 'lintme'
| ^^^^^^^^^^^^^^^
|
= note: #[warn(test_lint)] on by default
Expand Down
48 changes: 24 additions & 24 deletions src/test/ui-fulldeps/proc-macro/parent-source-spans.stderr
Original file line number Diff line number Diff line change
@@ -1,127 +1,127 @@
error: first final: "hello"
--> $DIR/parent-source-spans.rs:27:12
|
27 | three!($a, $b);
LL | three!($a, $b);
| ^^
...
44 | one!("hello", "world");
LL | one!("hello", "world");
| ----------------------- in this macro invocation

error: second final: "world"
--> $DIR/parent-source-spans.rs:27:16
|
27 | three!($a, $b);
LL | three!($a, $b);
| ^^
...
44 | one!("hello", "world");
LL | one!("hello", "world");
| ----------------------- in this macro invocation

error: first parent: "hello"
--> $DIR/parent-source-spans.rs:21:5
|
21 | two!($a, $b);
LL | two!($a, $b);
| ^^^^^^^^^^^^^
...
44 | one!("hello", "world");
LL | one!("hello", "world");
| ----------------------- in this macro invocation

error: second parent: "world"
--> $DIR/parent-source-spans.rs:21:5
|
21 | two!($a, $b);
LL | two!($a, $b);
| ^^^^^^^^^^^^^
...
44 | one!("hello", "world");
LL | one!("hello", "world");
| ----------------------- in this macro invocation

error: first grandparent: "hello"
--> $DIR/parent-source-spans.rs:44:5
|
44 | one!("hello", "world");
LL | one!("hello", "world");
| ^^^^^^^^^^^^^^^^^^^^^^^

error: second grandparent: "world"
--> $DIR/parent-source-spans.rs:44:5
|
44 | one!("hello", "world");
LL | one!("hello", "world");
| ^^^^^^^^^^^^^^^^^^^^^^^

error: first source: "hello"
--> $DIR/parent-source-spans.rs:44:5
|
44 | one!("hello", "world");
LL | one!("hello", "world");
| ^^^^^^^^^^^^^^^^^^^^^^^

error: second source: "world"
--> $DIR/parent-source-spans.rs:44:5
|
44 | one!("hello", "world");
LL | one!("hello", "world");
| ^^^^^^^^^^^^^^^^^^^^^^^

error: first final: "yay"
--> $DIR/parent-source-spans.rs:27:12
|
27 | three!($a, $b);
LL | three!($a, $b);
| ^^
...
50 | two!("yay", "rust");
LL | two!("yay", "rust");
| -------------------- in this macro invocation

error: second final: "rust"
--> $DIR/parent-source-spans.rs:27:16
|
27 | three!($a, $b);
LL | three!($a, $b);
| ^^
...
50 | two!("yay", "rust");
LL | two!("yay", "rust");
| -------------------- in this macro invocation

error: first parent: "yay"
--> $DIR/parent-source-spans.rs:50:5
|
50 | two!("yay", "rust");
LL | two!("yay", "rust");
| ^^^^^^^^^^^^^^^^^^^^

error: second parent: "rust"
--> $DIR/parent-source-spans.rs:50:5
|
50 | two!("yay", "rust");
LL | two!("yay", "rust");
| ^^^^^^^^^^^^^^^^^^^^

error: first source: "yay"
--> $DIR/parent-source-spans.rs:50:5
|
50 | two!("yay", "rust");
LL | two!("yay", "rust");
| ^^^^^^^^^^^^^^^^^^^^

error: second source: "rust"
--> $DIR/parent-source-spans.rs:50:5
|
50 | two!("yay", "rust");
LL | two!("yay", "rust");
| ^^^^^^^^^^^^^^^^^^^^

error: first final: "hip"
--> $DIR/parent-source-spans.rs:56:12
|
56 | three!("hip", "hop");
LL | three!("hip", "hop");
| ^^^^^

error: second final: "hop"
--> $DIR/parent-source-spans.rs:56:19
|
56 | three!("hip", "hop");
LL | three!("hip", "hop");
| ^^^^^

error: first source: "hip"
--> $DIR/parent-source-spans.rs:56:12
|
56 | three!("hip", "hop");
LL | three!("hip", "hop");
| ^^^^^

error: second source: "hop"
--> $DIR/parent-source-spans.rs:56:19
|
56 | three!("hip", "hop");
LL | three!("hip", "hop");
| ^^^^^

error: aborting due to 18 previous errors
Expand Down
8 changes: 4 additions & 4 deletions src/test/ui-fulldeps/proc-macro/signature.stderr
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
error[E0308]: mismatched types
--> $DIR/signature.rs:17:1
|
17 | / pub unsafe extern fn foo(a: i32, b: u32) -> u32 {
18 | | //~^ ERROR: mismatched types
19 | | loop {}
20 | | }
LL | / pub unsafe extern fn foo(a: i32, b: u32) -> u32 {
LL | | //~^ ERROR: mismatched types
LL | | loop {}
LL | | }
| |_^ expected normal fn, found unsafe fn
|
= note: expected type `fn(proc_macro::TokenStream) -> proc_macro::TokenStream`
Expand Down
14 changes: 7 additions & 7 deletions src/test/ui-fulldeps/proc-macro/three-equals.stderr
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
error: found 2 equal signs, need exactly 3
--> $DIR/three-equals.rs:25:5
|
25 | three_equals!(==); //~ ERROR found 2 equal signs, need exactly 3
LL | three_equals!(==); //~ ERROR found 2 equal signs, need exactly 3
| ^^^^^^^^^^^^^^^^^^
|
= help: input must be: `===`

error: expected EOF, found `=`.
--> $DIR/three-equals.rs:28:21
|
28 | three_equals!(=====); //~ ERROR expected EOF
LL | three_equals!(=====); //~ ERROR expected EOF
| ^^
|
note: last good input was here
--> $DIR/three-equals.rs:28:21
|
28 | three_equals!(=====); //~ ERROR expected EOF
LL | three_equals!(=====); //~ ERROR expected EOF
| ^^
= help: input must be: `===`

error: expected `=`, found `abc`.
--> $DIR/three-equals.rs:31:19
|
31 | three_equals!(abc); //~ ERROR expected `=`
LL | three_equals!(abc); //~ ERROR expected `=`
| ^^^

error: expected `=`, found `!`.
--> $DIR/three-equals.rs:34:19
|
34 | three_equals!(!!); //~ ERROR expected `=`
LL | three_equals!(!!); //~ ERROR expected `=`
| ^

error: expected EOF, found `a`.
--> $DIR/three-equals.rs:37:22
|
37 | three_equals!(===a); //~ ERROR expected EOF
LL | three_equals!(===a); //~ ERROR expected EOF
| ^
|
note: last good input was here
--> $DIR/three-equals.rs:37:21
|
37 | three_equals!(===a); //~ ERROR expected EOF
LL | three_equals!(===a); //~ ERROR expected EOF
| ^
= help: input must be: `===`

Expand Down
20 changes: 10 additions & 10 deletions src/test/ui-fulldeps/resolve-error.stderr
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
error: cannot find derive macro `FooWithLongNan` in this scope
--> $DIR/resolve-error.rs:37:10
|
37 | #[derive(FooWithLongNan)]
LL | #[derive(FooWithLongNan)]
| ^^^^^^^^^^^^^^ help: try: `FooWithLongName`

error: cannot find attribute macro `attr_proc_macra` in this scope
--> $DIR/resolve-error.rs:41:3
|
41 | #[attr_proc_macra]
LL | #[attr_proc_macra]
| ^^^^^^^^^^^^^^^ help: try: `attr_proc_macro`

error: cannot find attribute macro `FooWithLongNan` in this scope
--> $DIR/resolve-error.rs:45:3
|
45 | #[FooWithLongNan]
LL | #[FooWithLongNan]
| ^^^^^^^^^^^^^^

error: cannot find derive macro `Dlone` in this scope
--> $DIR/resolve-error.rs:49:10
|
49 | #[derive(Dlone)]
LL | #[derive(Dlone)]
| ^^^^^ help: try: `Clone`

error: cannot find derive macro `Dlona` in this scope
--> $DIR/resolve-error.rs:53:10
|
53 | #[derive(Dlona)]
LL | #[derive(Dlona)]
| ^^^^^ help: try: `Clona`

error: cannot find derive macro `attr_proc_macra` in this scope
--> $DIR/resolve-error.rs:57:10
|
57 | #[derive(attr_proc_macra)]
LL | #[derive(attr_proc_macra)]
| ^^^^^^^^^^^^^^^

error: cannot find macro `FooWithLongNama!` in this scope
--> $DIR/resolve-error.rs:62:5
|
62 | FooWithLongNama!();
LL | FooWithLongNama!();
| ^^^^^^^^^^^^^^^ help: you could try the macro: `FooWithLongNam`

error: cannot find macro `attr_proc_macra!` in this scope
--> $DIR/resolve-error.rs:65:5
|
65 | attr_proc_macra!();
LL | attr_proc_macra!();
| ^^^^^^^^^^^^^^^ help: you could try the macro: `attr_proc_mac`

error: cannot find macro `Dlona!` in this scope
--> $DIR/resolve-error.rs:68:5
|
68 | Dlona!();
LL | Dlona!();
| ^^^^^

error: cannot find macro `bang_proc_macrp!` in this scope
--> $DIR/resolve-error.rs:71:5
|
71 | bang_proc_macrp!();
LL | bang_proc_macrp!();
| ^^^^^^^^^^^^^^^ help: you could try the macro: `bang_proc_macro`

error: aborting due to 10 previous errors
Expand Down

0 comments on commit fa2d9fc

Please sign in to comment.