]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/option_env_unwrap.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / option_env_unwrap.stderr
CommitLineData
f20569fa
XL
1error: 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 |
4LL | 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
10error: 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 |
13LL | let _ = option_env!("PATH").expect("environment variable PATH isn't set");
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 |
16 = help: consider using the `env!` macro instead
17
18error: 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 |
21LL | option_env!($env).unwrap()
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
23...
24LL | 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
30error: 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 |
33LL | option_env!($env).expect($message)
34 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35...
36LL | 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
42error: 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 |
45LL | 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
51error: 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 |
54LL | 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
60error: aborting due to 6 previous errors
61