1
1
error: this will panic at run-time if the environment variable doesn't exist at compile-time
2
- --> $DIR/option_env_unwrap.rs:13 :13
2
+ --> $DIR/option_env_unwrap.rs:17 :13
3
3
|
4
4
LL | let _ = option_env!("HOME").unwrap();
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -8,15 +8,15 @@ LL | let _ = option_env!("HOME").unwrap();
8
8
= help: consider using the `env!` macro instead
9
9
10
10
error: this will panic at run-time if the environment variable doesn't exist at compile-time
11
- --> $DIR/option_env_unwrap.rs:14 :13
11
+ --> $DIR/option_env_unwrap.rs:18 :13
12
12
|
13
13
LL | let _ = option_env!("HOME").expect("environment variable HOME isn't set");
14
14
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15
15
|
16
16
= help: consider using the `env!` macro instead
17
17
18
18
error: this will panic at run-time if the environment variable doesn't exist at compile-time
19
- --> $DIR/option_env_unwrap.rs:5 :9
19
+ --> $DIR/option_env_unwrap.rs:9 :9
20
20
|
21
21
LL | option_env!($env).unwrap()
22
22
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -28,7 +28,7 @@ LL | let _ = option_env_unwrap!("HOME");
28
28
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
29
29
30
30
error: this will panic at run-time if the environment variable doesn't exist at compile-time
31
- --> $DIR/option_env_unwrap.rs:8 :9
31
+ --> $DIR/option_env_unwrap.rs:12 :9
32
32
|
33
33
LL | option_env!($env).expect($message)
34
34
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -39,5 +39,23 @@ LL | let _ = option_env_unwrap!("HOME", "environment variable HOME isn't set
39
39
= help: consider using the `env!` macro instead
40
40
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
41
41
42
- error: aborting due to 4 previous errors
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!("HOME");
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!("HOME", "environment variable HOME 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
43
61
0 commit comments