mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 17:13:48 +00:00
22b534de4f
There are comments saying these two functions should be kept in sync, but they have very different structures, process symbols in different orders, and there are some inconsistencies. This commit reorders them so they're both mostly processing symbols in alphabetical order, which makes cross-checking them a lot easier. The commit also adds some macros to factor out repetitive code patterns. Plus it adds `sanitizer_cfi_normalize_{integers,pointers}` to `fill_well_known`, which were missing. The commit also moves the handling of `sym::test` out of `build_configuration` into `default_configuration`, where all the other symbols are handled.
185 lines
5.1 KiB
Plaintext
185 lines
5.1 KiB
Plaintext
warning: unexpected `cfg` condition name: `widnows`
|
|
--> $DIR/mix.rs:15:7
|
|
|
|
|
LL | #[cfg(widnows)]
|
|
| ^^^^^^^ help: there is a config with a similar name: `windows`
|
|
|
|
|
= note: `#[warn(unexpected_cfgs)]` on by default
|
|
|
|
warning: unexpected `cfg` condition value: (none)
|
|
--> $DIR/mix.rs:19:7
|
|
|
|
|
LL | #[cfg(feature)]
|
|
| ^^^^^^^- help: specify a config value: `= "foo"`
|
|
|
|
|
= note: expected values for `feature` are: `foo`
|
|
|
|
warning: unexpected `cfg` condition value: `bar`
|
|
--> $DIR/mix.rs:26:7
|
|
|
|
|
LL | #[cfg(feature = "bar")]
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
= note: expected values for `feature` are: `foo`
|
|
|
|
warning: unexpected `cfg` condition value: `zebra`
|
|
--> $DIR/mix.rs:30:7
|
|
|
|
|
LL | #[cfg(feature = "zebra")]
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: expected values for `feature` are: `foo`
|
|
|
|
warning: unexpected `cfg` condition name: `uu`
|
|
--> $DIR/mix.rs:34:12
|
|
|
|
|
LL | #[cfg_attr(uu, test)]
|
|
| ^^
|
|
|
|
|
= help: expected names are: `cfg`, `debug_assertions`, `doc`, `doctest`, `feature`, `miri`, `names_values`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `unix`, `windows`
|
|
|
|
warning: unexpected `cfg` condition name: `widnows`
|
|
--> $DIR/mix.rs:43:10
|
|
|
|
|
LL | cfg!(widnows);
|
|
| ^^^^^^^ help: there is a config with a similar name: `windows`
|
|
|
|
warning: unexpected `cfg` condition value: `bar`
|
|
--> $DIR/mix.rs:46:10
|
|
|
|
|
LL | cfg!(feature = "bar");
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
= note: expected values for `feature` are: `foo`
|
|
|
|
warning: unexpected `cfg` condition value: `zebra`
|
|
--> $DIR/mix.rs:48:10
|
|
|
|
|
LL | cfg!(feature = "zebra");
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: expected values for `feature` are: `foo`
|
|
|
|
warning: unexpected `cfg` condition name: `xxx`
|
|
--> $DIR/mix.rs:50:10
|
|
|
|
|
LL | cfg!(xxx = "foo");
|
|
| ^^^^^^^^^^^
|
|
|
|
warning: unexpected `cfg` condition name: `xxx`
|
|
--> $DIR/mix.rs:52:10
|
|
|
|
|
LL | cfg!(xxx);
|
|
| ^^^
|
|
|
|
warning: unexpected `cfg` condition name: `xxx`
|
|
--> $DIR/mix.rs:54:14
|
|
|
|
|
LL | cfg!(any(xxx, windows));
|
|
| ^^^
|
|
|
|
warning: unexpected `cfg` condition value: `bad`
|
|
--> $DIR/mix.rs:56:14
|
|
|
|
|
LL | cfg!(any(feature = "bad", windows));
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
= note: expected values for `feature` are: `foo`
|
|
|
|
warning: unexpected `cfg` condition name: `xxx`
|
|
--> $DIR/mix.rs:58:23
|
|
|
|
|
LL | cfg!(any(windows, xxx));
|
|
| ^^^
|
|
|
|
warning: unexpected `cfg` condition name: `xxx`
|
|
--> $DIR/mix.rs:60:20
|
|
|
|
|
LL | cfg!(all(unix, xxx));
|
|
| ^^^
|
|
|
|
warning: unexpected `cfg` condition name: `aa`
|
|
--> $DIR/mix.rs:62:14
|
|
|
|
|
LL | cfg!(all(aa, bb));
|
|
| ^^
|
|
|
|
warning: unexpected `cfg` condition name: `bb`
|
|
--> $DIR/mix.rs:62:18
|
|
|
|
|
LL | cfg!(all(aa, bb));
|
|
| ^^
|
|
|
|
warning: unexpected `cfg` condition name: `aa`
|
|
--> $DIR/mix.rs:65:14
|
|
|
|
|
LL | cfg!(any(aa, bb));
|
|
| ^^
|
|
|
|
warning: unexpected `cfg` condition name: `bb`
|
|
--> $DIR/mix.rs:65:18
|
|
|
|
|
LL | cfg!(any(aa, bb));
|
|
| ^^
|
|
|
|
warning: unexpected `cfg` condition value: `zebra`
|
|
--> $DIR/mix.rs:68:20
|
|
|
|
|
LL | cfg!(any(unix, feature = "zebra"));
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: expected values for `feature` are: `foo`
|
|
|
|
warning: unexpected `cfg` condition name: `xxx`
|
|
--> $DIR/mix.rs:70:14
|
|
|
|
|
LL | cfg!(any(xxx, feature = "zebra"));
|
|
| ^^^
|
|
|
|
warning: unexpected `cfg` condition value: `zebra`
|
|
--> $DIR/mix.rs:70:19
|
|
|
|
|
LL | cfg!(any(xxx, feature = "zebra"));
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: expected values for `feature` are: `foo`
|
|
|
|
warning: unexpected `cfg` condition name: `xxx`
|
|
--> $DIR/mix.rs:73:14
|
|
|
|
|
LL | cfg!(any(xxx, unix, xxx));
|
|
| ^^^
|
|
|
|
warning: unexpected `cfg` condition name: `xxx`
|
|
--> $DIR/mix.rs:73:25
|
|
|
|
|
LL | cfg!(any(xxx, unix, xxx));
|
|
| ^^^
|
|
|
|
warning: unexpected `cfg` condition value: `zebra`
|
|
--> $DIR/mix.rs:76:14
|
|
|
|
|
LL | cfg!(all(feature = "zebra", feature = "zebra", feature = "zebra"));
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: expected values for `feature` are: `foo`
|
|
|
|
warning: unexpected `cfg` condition value: `zebra`
|
|
--> $DIR/mix.rs:76:33
|
|
|
|
|
LL | cfg!(all(feature = "zebra", feature = "zebra", feature = "zebra"));
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: expected values for `feature` are: `foo`
|
|
|
|
warning: unexpected `cfg` condition value: `zebra`
|
|
--> $DIR/mix.rs:76:52
|
|
|
|
|
LL | cfg!(all(feature = "zebra", feature = "zebra", feature = "zebra"));
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: expected values for `feature` are: `foo`
|
|
|
|
warning: 26 warnings emitted
|
|
|