about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/option_env_unwrap.stderr
blob: bbcbfedb78822c8d3c5bab3a90a2c2a4caafdfc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
error: this will panic at run-time if the environment variable doesn't exist at compile-time
  --> tests/ui/option_env_unwrap.rs:10:13
   |
LL |     let _ = option_env!("PATH").unwrap();
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider using the `env!` macro instead
   = note: `-D clippy::option-env-unwrap` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::option_env_unwrap)]`

error: this will panic at run-time if the environment variable doesn't exist at compile-time
  --> tests/ui/option_env_unwrap.rs:12:13
   |
LL |     let _ = option_env!("PATH").expect("environment variable PATH 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
  --> tests/ui/option_env_unwrap.rs:14:13
   |
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
  --> tests/ui/option_env_unwrap.rs:17:21
   |
LL |     let _ = inline!(option_env!($"PATH").unwrap());
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider using the `env!` macro instead
   = note: this error originates in the macro `__inline_mac_fn_main` (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
  --> tests/ui/option_env_unwrap.rs:19:21
   |
LL |     let _ = inline!(option_env!($"PATH").expect($"environment variable PATH isn't set"));
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider using the `env!` macro instead
   = note: this error originates in the macro `__inline_mac_fn_main` (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
  --> tests/ui/option_env_unwrap.rs:21:13
   |
LL |     let _ = external!(option_env!($"PATH").unwrap());
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider using the `env!` macro instead
   = note: this error originates in the macro `external` (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
  --> tests/ui/option_env_unwrap.rs:23:13
   |
LL |     let _ = external!(option_env!($"PATH").expect($"environment variable PATH isn't set"));
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider using the `env!` macro instead
   = note: this error originates in the macro `external` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 7 previous errors