mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
b849e10d38
`span_suggestions` is to provide mutually exclusive suggestions. When it was introduced, we made its behavior be that if a single suggestion is given to it, we present the suggestion inline, otherwise in patch format. Changing this to make all of its uses be verbose, as that is closer in intent of output.
56 lines
1.4 KiB
Plaintext
56 lines
1.4 KiB
Plaintext
error: malformed `cfg_accessible` attribute input
|
|
--> $DIR/cfg_accessible-input-validation.rs:3:1
|
|
|
|
|
LL | #[cfg_accessible]
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
help: must be of the form
|
|
|
|
|
LL | #[cfg_accessible(path)]
|
|
| ++++++
|
|
|
|
error: malformed `cfg_accessible` attribute input
|
|
--> $DIR/cfg_accessible-input-validation.rs:6:1
|
|
|
|
|
LL | #[cfg_accessible = "value"]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
help: must be of the form
|
|
|
|
|
LL - #[cfg_accessible = "value"]
|
|
LL + #[cfg_accessible(path)]
|
|
|
|
|
|
|
error: `cfg_accessible` path is not specified
|
|
--> $DIR/cfg_accessible-input-validation.rs:9:1
|
|
|
|
|
LL | #[cfg_accessible()]
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: multiple `cfg_accessible` paths are specified
|
|
--> $DIR/cfg_accessible-input-validation.rs:12:23
|
|
|
|
|
LL | #[cfg_accessible(std, core)]
|
|
| ^^^^
|
|
|
|
error: `cfg_accessible` path cannot be a literal
|
|
--> $DIR/cfg_accessible-input-validation.rs:15:18
|
|
|
|
|
LL | #[cfg_accessible("std")]
|
|
| ^^^^^
|
|
|
|
error: `cfg_accessible` path cannot accept arguments
|
|
--> $DIR/cfg_accessible-input-validation.rs:18:18
|
|
|
|
|
LL | #[cfg_accessible(std = "value")]
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error: `cfg_accessible` path cannot accept arguments
|
|
--> $DIR/cfg_accessible-input-validation.rs:21:18
|
|
|
|
|
LL | #[cfg_accessible(std(value))]
|
|
| ^^^^^^^^^^
|
|
|
|
error: aborting due to 7 previous errors
|
|
|