Skip to content

Commit

Permalink
Update UI tests for latest stable.
Browse files Browse the repository at this point in the history
  • Loading branch information
jebrosen committed Aug 1, 2021
1 parent 26ca47b commit 5cb243f
Show file tree
Hide file tree
Showing 11 changed files with 84 additions and 84 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ error: [note] error occurred while deriving `Database`
3 | #[derive(Database)]
| ^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `Database` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected key/value `key = value`
--> $DIR/database-syntax.rs:8:25
Expand All @@ -24,7 +24,7 @@ error: [note] error occurred while deriving `Database`
7 | #[derive(Database)]
| ^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `Database` (in Nightly builds, run with -Z macro-backtrace for more info)

error: unexpected attribute parameter: `name`
--> $DIR/database-syntax.rs:12:25
Expand All @@ -38,7 +38,7 @@ error: [note] error occurred while deriving `Database`
11 | #[derive(Database)]
| ^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `Database` (in Nightly builds, run with -Z macro-backtrace for more info)

error: enums are not supported
--> $DIR/database-syntax.rs:16:1
Expand All @@ -52,7 +52,7 @@ error: [note] error occurred while deriving `Database`
15 | #[derive(Database)]
| ^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `Database` (in Nightly builds, run with -Z macro-backtrace for more info)

error: missing `#[database("name")]` attribute
--> $DIR/database-syntax.rs:20:1
Expand All @@ -66,7 +66,7 @@ error: [note] error occurred while deriving `Database`
19 | #[derive(Database)]
| ^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `Database` (in Nightly builds, run with -Z macro-backtrace for more info)

error: struct must have exactly one unnamed field
--> $DIR/database-syntax.rs:23:1
Expand All @@ -80,7 +80,7 @@ error: [note] error occurred while deriving `Database`
22 | #[derive(Database)]
| ^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `Database` (in Nightly builds, run with -Z macro-backtrace for more info)

error: struct must have exactly one unnamed field
--> $DIR/database-syntax.rs:27:1
Expand All @@ -94,7 +94,7 @@ error: [note] error occurred while deriving `Database`
26 | #[derive(Database)]
| ^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `Database` (in Nightly builds, run with -Z macro-backtrace for more info)

error: named structs are not supported
--> $DIR/database-syntax.rs:31:1
Expand All @@ -108,4 +108,4 @@ error: [note] error occurred while deriving `Database`
30 | #[derive(Database)]
| ^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `Database` (in Nightly builds, run with -Z macro-backtrace for more info)
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ error: unexpected end of input, expected string literal
6 | #[database]
| ^^^^^^^^^^^
|
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the attribute macro `database` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected string literal
--> $DIR/database-syntax.rs:9:12
Expand Down
14 changes: 7 additions & 7 deletions core/codegen/tests/ui-fail-stable/async-entry.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ error: attribute can only be applied to `async` functions
4 | #[rocket::main]
| ^^^^^^^^^^^^^^^
|
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the attribute macro `rocket::main` (in Nightly builds, run with -Z macro-backtrace for more info)

error: [note] this function must be `async`
--> $DIR/async-entry.rs:5:5
Expand All @@ -18,7 +18,7 @@ error: attribute can only be applied to `async` functions
16 | #[rocket::main]
| ^^^^^^^^^^^^^^^
|
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the attribute macro `rocket::main` (in Nightly builds, run with -Z macro-backtrace for more info)

error: [note] this function must be `async`
--> $DIR/async-entry.rs:17:5
Expand All @@ -33,7 +33,7 @@ error: attribute cannot be applied to `main` function
49 | #[rocket::launch]
| ^^^^^^^^^^^^^^^^^
|
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the attribute macro `rocket::launch` (in Nightly builds, run with -Z macro-backtrace for more info)

error: [note] this function cannot be `main`
--> $DIR/async-entry.rs:50:8
Expand All @@ -47,7 +47,7 @@ error: attribute can only be applied to functions that return a value
56 | #[rocket::launch]
| ^^^^^^^^^^^^^^^^^
|
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the attribute macro `rocket::launch` (in Nightly builds, run with -Z macro-backtrace for more info)

error: [note] this function must return a value
--> $DIR/async-entry.rs:57:5
Expand All @@ -61,7 +61,7 @@ error: attribute can only be applied to functions that return a value
64 | #[rocket::launch]
| ^^^^^^^^^^^^^^^^^
|
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the attribute macro `rocket::launch` (in Nightly builds, run with -Z macro-backtrace for more info)

error: [note] this function must return a value
--> $DIR/async-entry.rs:65:5
Expand All @@ -76,7 +76,7 @@ error: attribute cannot be applied to `main` function
79 | #[rocket::launch]
| ^^^^^^^^^^^^^^^^^
|
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the attribute macro `rocket::launch` (in Nightly builds, run with -Z macro-backtrace for more info)

error: [note] this function cannot be `main`
--> $DIR/async-entry.rs:80:8
Expand All @@ -91,7 +91,7 @@ error: attribute cannot be applied to `main` function
87 | #[rocket::launch]
| ^^^^^^^^^^^^^^^^^
|
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the attribute macro `rocket::launch` (in Nightly builds, run with -Z macro-backtrace for more info)

error: [note] this function cannot be `main`
--> $DIR/async-entry.rs:88:14
Expand Down
2 changes: 1 addition & 1 deletion core/codegen/tests/ui-fail-stable/catchers.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ error: unexpected end of input, expected identifier
7 | let _ = catchers![a::];
| ^^^^^^^^^^^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the macro `catchers` (in Nightly builds, run with -Z macro-backtrace for more info)
Loading

0 comments on commit 5cb243f

Please sign in to comment.