Update fulldeps test
This commit is contained in:
parent
9157430d62
commit
692454d583
|
@ -1,25 +1,20 @@
|
||||||
error: `#[derive(SessionDiagnostic)]` can only be used on structs
|
error: `#[derive(SessionDiagnostic)]` can only be used on structs
|
||||||
--> $DIR/session-derive-errors.rs:28:1
|
--> $DIR/session-derive-errors.rs:28:1
|
||||||
|
|
|
|
||||||
LL | / #[error = "E0123"]
|
LL | #[error = "E0123"]
|
||||||
LL | |
|
| ^
|
||||||
LL | | enum SessionDiagnosticOnEnum {
|
|
||||||
LL | | Foo,
|
|
||||||
LL | | Bar,
|
|
||||||
LL | | }
|
|
||||||
| |_^
|
|
||||||
|
|
||||||
error: `#[label = ...]` is not a valid SessionDiagnostic struct attribute
|
error: `#[label = ...]` is not a valid SessionDiagnostic struct attribute
|
||||||
--> $DIR/session-derive-errors.rs:37:1
|
--> $DIR/session-derive-errors.rs:37:1
|
||||||
|
|
|
|
||||||
LL | #[label = "This is in the wrong place"]
|
LL | #[label = "This is in the wrong place"]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^
|
||||||
|
|
||||||
error: `#[suggestion = ...]` is not a valid SessionDiagnostic field attribute
|
error: `#[suggestion = ...]` is not a valid SessionDiagnostic field attribute
|
||||||
--> $DIR/session-derive-errors.rs:44:5
|
--> $DIR/session-derive-errors.rs:44:5
|
||||||
|
|
|
|
||||||
LL | #[suggestion = "this is the wrong kind of attribute"]
|
LL | #[suggestion = "this is the wrong kind of attribute"]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^
|
||||||
|
|
||||||
error: `error` specified multiple times
|
error: `error` specified multiple times
|
||||||
--> $DIR/session-derive-errors.rs:52:11
|
--> $DIR/session-derive-errors.rs:52:11
|
||||||
|
@ -37,7 +32,7 @@ error: `code` not specified
|
||||||
--> $DIR/session-derive-errors.rs:67:1
|
--> $DIR/session-derive-errors.rs:67:1
|
||||||
|
|
|
|
||||||
LL | struct ErrorCodeNotProvided {}
|
LL | struct ErrorCodeNotProvided {}
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^
|
||||||
|
|
|
|
||||||
= help: use the [code = "..."] attribute to set this diagnostic's error code
|
= help: use the [code = "..."] attribute to set this diagnostic's error code
|
||||||
|
|
||||||
|
@ -45,13 +40,13 @@ error: the `#[message = "..."]` attribute can only be applied to fields of type
|
||||||
--> $DIR/session-derive-errors.rs:95:5
|
--> $DIR/session-derive-errors.rs:95:5
|
||||||
|
|
|
|
||||||
LL | #[message = "this message is applied to a String field"]
|
LL | #[message = "this message is applied to a String field"]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^
|
||||||
|
|
||||||
error: `name` doesn't refer to a field on this type
|
error: `name` doesn't refer to a field on this type
|
||||||
--> $DIR/session-derive-errors.rs:102:1
|
--> $DIR/session-derive-errors.rs:102:1
|
||||||
|
|
|
|
||||||
LL | #[message = "This error has a field, and references {name}"]
|
LL | #[message = "This error has a field, and references {name}"]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^
|
||||||
|
|
||||||
error: invalid format string: expected `'}'` but string was terminated
|
error: invalid format string: expected `'}'` but string was terminated
|
||||||
--> $DIR/session-derive-errors.rs:110:1
|
--> $DIR/session-derive-errors.rs:110:1
|
||||||
|
@ -77,59 +72,53 @@ error: The `#[label = ...]` attribute can only be applied to fields of type Span
|
||||||
--> $DIR/session-derive-errors.rs:138:5
|
--> $DIR/session-derive-errors.rs:138:5
|
||||||
|
|
|
|
||||||
LL | #[label = "See here"]
|
LL | #[label = "See here"]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^
|
| ^
|
||||||
|
|
||||||
error: `nonsense` is not a valid key for `#[suggestion(...)]`
|
error: `nonsense` is not a valid key for `#[suggestion(...)]`
|
||||||
--> $DIR/session-derive-errors.rs:163:18
|
--> $DIR/session-derive-errors.rs:163:18
|
||||||
|
|
|
|
||||||
LL | #[suggestion(nonsense = "This is nonsense")]
|
LL | #[suggestion(nonsense = "This is nonsense")]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^
|
||||||
|
|
||||||
error: `msg` is not a valid key for `#[suggestion(...)]`
|
error: `msg` is not a valid key for `#[suggestion(...)]`
|
||||||
--> $DIR/session-derive-errors.rs:171:18
|
--> $DIR/session-derive-errors.rs:171:18
|
||||||
|
|
|
|
||||||
LL | #[suggestion(msg = "This is a suggestion")]
|
LL | #[suggestion(msg = "This is a suggestion")]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^
|
||||||
|
|
||||||
error: missing suggestion message
|
error: missing suggestion message
|
||||||
--> $DIR/session-derive-errors.rs:179:7
|
--> $DIR/session-derive-errors.rs:179:7
|
||||||
|
|
|
|
||||||
LL | #[suggestion(code = "This is suggested code")]
|
LL | #[suggestion(code = "This is suggested code")]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= help: provide a suggestion message using #[suggestion(message = "...")]
|
= help: provide a suggestion message using #[suggestion(message = "...")]
|
||||||
|
|
||||||
error: wrong field type for suggestion
|
error: wrong field type for suggestion
|
||||||
--> $DIR/session-derive-errors.rs:194:5
|
--> $DIR/session-derive-errors.rs:194:5
|
||||||
|
|
|
|
||||||
LL | / #[suggestion(message = "This is a message", code = "This is suggested code")]
|
LL | #[suggestion(message = "This is a message", code = "This is suggested code")]
|
||||||
LL | |
|
| ^
|
||||||
LL | | suggestion: Applicability,
|
|
||||||
| |_____________________________^
|
|
||||||
|
|
|
|
||||||
= help: #[suggestion(...)] should be applied to fields of type Span or (Span, Applicability)
|
= help: #[suggestion(...)] should be applied to fields of type Span or (Span, Applicability)
|
||||||
|
|
||||||
error: type of field annotated with `#[suggestion(...)]` contains more than one Span
|
error: type of field annotated with `#[suggestion(...)]` contains more than one Span
|
||||||
--> $DIR/session-derive-errors.rs:209:5
|
--> $DIR/session-derive-errors.rs:209:5
|
||||||
|
|
|
|
||||||
LL | / #[suggestion(message = "This is a message", code = "This is suggested code")]
|
LL | #[suggestion(message = "This is a message", code = "This is suggested code")]
|
||||||
LL | |
|
| ^
|
||||||
LL | | suggestion: (Span, Span, Applicability),
|
|
||||||
| |___________________________________________^
|
|
||||||
|
|
||||||
error: type of field annotated with `#[suggestion(...)]` contains more than one Applicability
|
error: type of field annotated with `#[suggestion(...)]` contains more than one Applicability
|
||||||
--> $DIR/session-derive-errors.rs:217:5
|
--> $DIR/session-derive-errors.rs:217:5
|
||||||
|
|
|
|
||||||
LL | / #[suggestion(message = "This is a message", code = "This is suggested code")]
|
LL | #[suggestion(message = "This is a message", code = "This is suggested code")]
|
||||||
LL | |
|
| ^
|
||||||
LL | | suggestion: (Applicability, Applicability, Span),
|
|
||||||
| |____________________________________________________^
|
|
||||||
|
|
||||||
error: invalid annotation list `#[label(...)]`
|
error: invalid annotation list `#[label(...)]`
|
||||||
--> $DIR/session-derive-errors.rs:225:7
|
--> $DIR/session-derive-errors.rs:225:7
|
||||||
|
|
|
|
||||||
LL | #[label("wrong kind of annotation for label")]
|
LL | #[label("wrong kind of annotation for label")]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^
|
||||||
|
|
||||||
error: aborting due to 18 previous errors
|
error: aborting due to 18 previous errors
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue