3455d66041
This is fixed by simply using the currently registered target in the current session. We need to use it because of target json that are not by design included in the rustc list of targets.
14 lines
622 B
Plaintext
14 lines
622 B
Plaintext
warning: unexpected `cfg` condition value
|
|
--> $DIR/values-target-json.rs:13:7
|
|
|
|
|
LL | #[cfg(target_os = "linuz")]
|
|
| ^^^^^^^^^^^^-------
|
|
| |
|
|
| help: did you mean: `"linux"`
|
|
|
|
|
= note: expected values for `target_os` are: aix, android, cuda, dragonfly, emscripten, ericos, espidf, freebsd, fuchsia, haiku, hermit, horizon, illumos, ios, l4re, linux, macos, netbsd, none, nto, openbsd, psp, redox, solaris, solid_asp3, tvos, uefi, unknown, vita, vxworks, wasi, watchos, windows, xous
|
|
= note: `#[warn(unexpected_cfgs)]` on by default
|
|
|
|
warning: 1 warning emitted
|
|
|