fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: this will panic at run-time if the environment variable doesn't exist at compile-time 2 --> $DIR/option_env_unwrap.rs:10:13 3 | 4LL | let _ = option_env!("PATH").unwrap(); 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | 7 = help: consider using the `env!` macro instead 8 = note: `-D clippy::option-env-unwrap` implied by `-D warnings` 9 = help: to override `-D warnings` add `#[allow(clippy::option_env_unwrap)]` 10 11error: this will panic at run-time if the environment variable doesn't exist at compile-time 12 --> $DIR/option_env_unwrap.rs:11:13 13 | 14LL | let _ = option_env!("PATH").expect("environment variable PATH isn't set"); 15 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16 | 17 = help: consider using the `env!` macro instead 18 19error: this will panic at run-time if the environment variable doesn't exist at compile-time 20 --> $DIR/option_env_unwrap.rs:12:13 21 | 22LL | 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... 23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 24 | 25 = help: consider using the `env!` macro instead 26 27error: this will panic at run-time if the environment variable doesn't exist at compile-time 28 --> $DIR/option_env_unwrap.rs:13:21 29 | 30LL | let _ = inline!(option_env!($"PATH").unwrap()); 31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 32 | 33 = help: consider using the `env!` macro instead 34 = note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info) 35 36error: this will panic at run-time if the environment variable doesn't exist at compile-time 37 --> $DIR/option_env_unwrap.rs:14:21 38 | 39LL | let _ = inline!(option_env!($"PATH").expect($"environment variable PATH isn't set")); 40 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 41 | 42 = help: consider using the `env!` macro instead 43 = note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info) 44 45error: this will panic at run-time if the environment variable doesn't exist at compile-time 46 --> $DIR/option_env_unwrap.rs:15:13 47 | 48LL | let _ = external!(option_env!($"PATH").unwrap()); 49 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 50 | 51 = help: consider using the `env!` macro instead 52 = note: this error originates in the macro `external` (in Nightly builds, run with -Z macro-backtrace for more info) 53 54error: this will panic at run-time if the environment variable doesn't exist at compile-time 55 --> $DIR/option_env_unwrap.rs:16:13 56 | 57LL | let _ = external!(option_env!($"PATH").expect($"environment variable PATH isn't set")); 58 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 59 | 60 = help: consider using the `env!` macro instead 61 = note: this error originates in the macro `external` (in Nightly builds, run with -Z macro-backtrace for more info) 62 63error: aborting due to 7 previous errors 64