2020-02-09 10:54:23 -06:00
|
|
|
error: this will panic at run-time if the environment variable doesn't exist at compile-time
|
2021-12-06 05:33:31 -06:00
|
|
|
--> $DIR/option_env_unwrap.rs:18:13
|
2020-02-08 18:44:35 -06:00
|
|
|
|
|
2020-02-09 16:12:40 -06:00
|
|
|
LL | let _ = option_env!("PATH").unwrap();
|
2020-02-08 18:44:35 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::option-env-unwrap` implied by `-D warnings`
|
|
|
|
= help: consider using the `env!` macro instead
|
|
|
|
|
2020-02-09 10:54:23 -06:00
|
|
|
error: this will panic at run-time if the environment variable doesn't exist at compile-time
|
2021-12-06 05:33:31 -06:00
|
|
|
--> $DIR/option_env_unwrap.rs:19:13
|
2020-02-09 10:54:23 -06:00
|
|
|
|
|
2020-02-09 16:12:40 -06:00
|
|
|
LL | let _ = option_env!("PATH").expect("environment variable PATH isn't set");
|
2020-02-09 10:54:23 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using the `env!` macro instead
|
|
|
|
|
|
|
|
error: this will panic at run-time if the environment variable doesn't exist at compile-time
|
2021-12-06 05:33:31 -06:00
|
|
|
--> $DIR/option_env_unwrap.rs:10:9
|
2020-02-08 18:44:35 -06:00
|
|
|
|
|
|
|
|
LL | option_env!($env).unwrap()
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
...
|
2020-02-09 16:12:40 -06:00
|
|
|
LL | let _ = option_env_unwrap!("PATH");
|
2020-02-08 18:44:35 -06:00
|
|
|
| -------------------------- in this macro invocation
|
|
|
|
|
|
|
|
|
= help: consider using the `env!` macro instead
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `option_env_unwrap` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-02-08 18:44:35 -06:00
|
|
|
|
2020-02-09 10:54:23 -06:00
|
|
|
error: this will panic at run-time if the environment variable doesn't exist at compile-time
|
2021-12-06 05:33:31 -06:00
|
|
|
--> $DIR/option_env_unwrap.rs:13:9
|
2020-02-09 10:54:23 -06:00
|
|
|
|
|
|
|
|
LL | option_env!($env).expect($message)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
...
|
2020-02-09 16:12:40 -06:00
|
|
|
LL | let _ = option_env_unwrap!("PATH", "environment variable PATH isn't set");
|
2020-02-09 10:54:23 -06:00
|
|
|
| ----------------------------------------------------------------- in this macro invocation
|
|
|
|
|
|
|
|
|
= help: consider using the `env!` macro instead
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `option_env_unwrap` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-02-09 10:54:23 -06:00
|
|
|
|
2020-02-09 12:58:08 -06:00
|
|
|
error: this will panic at run-time if the environment variable doesn't exist at compile-time
|
2021-12-06 05:33:31 -06:00
|
|
|
--> $DIR/option_env_unwrap.rs:22:13
|
2020-02-09 12:58:08 -06:00
|
|
|
|
|
2020-02-09 16:12:40 -06:00
|
|
|
LL | let _ = option_env_unwrap_external!("PATH");
|
2020-02-09 12:58:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using the `env!` macro instead
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `option_env_unwrap_external` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-02-09 12:58:08 -06:00
|
|
|
|
|
|
|
error: this will panic at run-time if the environment variable doesn't exist at compile-time
|
2021-12-06 05:33:31 -06:00
|
|
|
--> $DIR/option_env_unwrap.rs:23:13
|
2020-02-09 12:58:08 -06:00
|
|
|
|
|
2020-02-09 16:12:40 -06:00
|
|
|
LL | let _ = option_env_unwrap_external!("PATH", "environment variable PATH isn't set");
|
2020-02-09 12:58:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using the `env!` macro instead
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `option_env_unwrap_external` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-02-09 12:58:08 -06:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2020-02-08 18:44:35 -06:00
|
|
|
|