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
|
2020-02-09 12:58:08 -06:00
|
|
|
--> $DIR/option_env_unwrap.rs:17:13
|
2020-02-08 18:44:35 -06:00
|
|
|
|
|
|
|
|
LL | let _ = option_env!("HOME").unwrap();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= 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
|
2020-02-09 12:58:08 -06:00
|
|
|
--> $DIR/option_env_unwrap.rs:18:13
|
2020-02-09 10:54:23 -06:00
|
|
|
|
|
|
|
|
LL | let _ = option_env!("HOME").expect("environment variable HOME isn't set");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using the `env!` macro instead
|
|
|
|
|
|
|
|
error: this will panic at run-time if the environment variable doesn't exist at compile-time
|
2020-02-09 12:58:08 -06:00
|
|
|
--> $DIR/option_env_unwrap.rs:9:9
|
2020-02-08 18:44:35 -06:00
|
|
|
|
|
|
|
|
LL | option_env!($env).unwrap()
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | let _ = option_env_unwrap!("HOME");
|
|
|
|
| -------------------------- in this macro invocation
|
|
|
|
|
|
|
|
|
= help: consider using the `env!` macro instead
|
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
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
|
2020-02-09 12:58:08 -06:00
|
|
|
--> $DIR/option_env_unwrap.rs:12:9
|
2020-02-09 10:54:23 -06:00
|
|
|
|
|
|
|
|
LL | option_env!($env).expect($message)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | let _ = option_env_unwrap!("HOME", "environment variable HOME isn't set");
|
|
|
|
| ----------------------------------------------------------------- in this macro invocation
|
|
|
|
|
|
|
|
|
= help: consider using the `env!` macro instead
|
|
|
|
= note: this error originates in a macro (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
|
|
|
|
--> $DIR/option_env_unwrap.rs:21:13
|
|
|
|
|
|
|
|
|
LL | let _ = option_env_unwrap_external!("HOME");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using the `env!` macro instead
|
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error: this will panic at run-time if the environment variable doesn't exist at compile-time
|
|
|
|
--> $DIR/option_env_unwrap.rs:22:13
|
|
|
|
|
|
|
|
|
LL | let _ = option_env_unwrap_external!("HOME", "environment variable HOME isn't set");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using the `env!` macro instead
|
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2020-02-08 18:44:35 -06:00
|
|
|
|