11error: 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
33 |
44LL | let _ = option_env!("HOME").unwrap();
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -8,15 +8,15 @@ LL | let _ = option_env!("HOME").unwrap();
88 = help: consider using the `env!` macro instead
99
1010error: 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
1212 |
1313LL | let _ = option_env!("HOME").expect("environment variable HOME isn't set");
1414 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1515 |
1616 = help: consider using the `env!` macro instead
1717
1818error: 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
2020 |
2121LL | option_env!($env).unwrap()
2222 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -28,7 +28,7 @@ LL | let _ = option_env_unwrap!("HOME");
2828 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
2929
3030error: 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
3232 |
3333LL | option_env!($env).expect($message)
3434 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -39,5 +39,23 @@ LL | let _ = option_env_unwrap!("HOME", "environment variable HOME isn't set
3939 = help: consider using the `env!` macro instead
4040 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
4141
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
4361
0 commit comments