2020-02-09 16:54:23 +00:00
|
|
|
error: this will panic at run-time if the environment variable doesn't exist at compile-time
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/option_env_unwrap.rs:10:13
|
2020-02-09 00:44:35 +00:00
|
|
|
|
|
2020-02-09 22:12:40 +00:00
|
|
|
LL | let _ = option_env!("PATH").unwrap();
|
2020-02-09 00:44:35 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using the `env!` macro instead
|
2022-09-22 16:04:22 +00:00
|
|
|
= note: `-D clippy::option-env-unwrap` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::option_env_unwrap)]`
|
2020-02-09 00:44:35 +00:00
|
|
|
|
2020-02-09 16:54:23 +00:00
|
|
|
error: this will panic at run-time if the environment variable doesn't exist at compile-time
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/option_env_unwrap.rs:11:13
|
2020-02-09 16:54:23 +00:00
|
|
|
|
|
2020-02-09 22:12:40 +00:00
|
|
|
LL | let _ = option_env!("PATH").expect("environment variable PATH isn't set");
|
2020-02-09 16:54:23 +00: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
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/option_env_unwrap.rs:12:13
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | let _ = option_env!("__Y__do_not_use").unwrap(); // This test only works if you don't have a __Y__do_not_use env variable in your env...
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using the `env!` macro instead
|
|
|
|
|
|
|
|
error: this will panic at run-time if the environment variable doesn't exist at compile-time
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/option_env_unwrap.rs:13:21
|
2020-02-09 00:44:35 +00:00
|
|
|
|
|
2023-03-24 13:04:35 +00:00
|
|
|
LL | let _ = inline!(option_env!($"PATH").unwrap());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-02-09 00:44:35 +00:00
|
|
|
|
|
|
|
|
= help: consider using the `env!` macro instead
|
2023-03-24 13:04:35 +00:00
|
|
|
= note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-02-09 00:44:35 +00:00
|
|
|
|
2020-02-09 16:54:23 +00:00
|
|
|
error: this will panic at run-time if the environment variable doesn't exist at compile-time
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/option_env_unwrap.rs:14:21
|
2020-02-09 16:54:23 +00:00
|
|
|
|
|
2023-03-24 13:04:35 +00:00
|
|
|
LL | let _ = inline!(option_env!($"PATH").expect($"environment variable PATH isn't set"));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-02-09 16:54:23 +00:00
|
|
|
|
|
|
|
|
= help: consider using the `env!` macro instead
|
2023-03-24 13:04:35 +00:00
|
|
|
= note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-02-09 16:54:23 +00:00
|
|
|
|
2020-02-09 18:58:08 +00:00
|
|
|
error: this will panic at run-time if the environment variable doesn't exist at compile-time
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/option_env_unwrap.rs:15:13
|
2020-02-09 18:58:08 +00:00
|
|
|
|
|
2023-03-24 13:04:35 +00:00
|
|
|
LL | let _ = external!(option_env!($"PATH").unwrap());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-02-09 18:58:08 +00:00
|
|
|
|
|
|
|
|
= help: consider using the `env!` macro instead
|
2023-03-24 13:04:35 +00:00
|
|
|
= note: this error originates in the macro `external` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-02-09 18:58:08 +00:00
|
|
|
|
|
|
|
error: this will panic at run-time if the environment variable doesn't exist at compile-time
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/option_env_unwrap.rs:16:13
|
2020-02-09 18:58:08 +00:00
|
|
|
|
|
2023-03-24 13:04:35 +00:00
|
|
|
LL | let _ = external!(option_env!($"PATH").expect($"environment variable PATH isn't set"));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-02-09 18:58:08 +00:00
|
|
|
|
|
|
|
|
= help: consider using the `env!` macro instead
|
2023-03-24 13:04:35 +00:00
|
|
|
= note: this error originates in the macro `external` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-02-09 18:58:08 +00:00
|
|
|
|
2023-07-31 21:53:53 +00:00
|
|
|
error: aborting due to 7 previous errors
|
2020-02-09 00:44:35 +00:00
|
|
|
|