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