11error: this will panic at run-time if the environment variable doesn't exist at compile-time
2- --> $DIR/option_env_unwrap.rs:17 :13
2+ --> $DIR/option_env_unwrap.rs:18 :13
33 |
44LL | let _ = option_env!("PATH").unwrap();
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -8,15 +8,15 @@ LL | let _ = option_env!("PATH").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:18 :13
11+ --> $DIR/option_env_unwrap.rs:19 :13
1212 |
1313LL | let _ = option_env!("PATH").expect("environment variable PATH 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:9 :9
19+ --> $DIR/option_env_unwrap.rs:10 :9
2020 |
2121LL | option_env!($env).unwrap()
2222 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -28,7 +28,7 @@ LL | let _ = option_env_unwrap!("PATH");
2828 = note: this error originates in the macro `option_env_unwrap` (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:12 :9
31+ --> $DIR/option_env_unwrap.rs:13 :9
3232 |
3333LL | option_env!($env).expect($message)
3434 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -40,7 +40,7 @@ LL | let _ = option_env_unwrap!("PATH", "environment variable PATH isn't set
4040 = note: this error originates in the macro `option_env_unwrap` (in Nightly builds, run with -Z macro-backtrace for more info)
4141
4242error: this will panic at run-time if the environment variable doesn't exist at compile-time
43- --> $DIR/option_env_unwrap.rs:21 :13
43+ --> $DIR/option_env_unwrap.rs:22 :13
4444 |
4545LL | let _ = option_env_unwrap_external!("PATH");
4646 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -49,7 +49,7 @@ LL | let _ = option_env_unwrap_external!("PATH");
4949 = note: this error originates in the macro `option_env_unwrap_external` (in Nightly builds, run with -Z macro-backtrace for more info)
5050
5151error: this will panic at run-time if the environment variable doesn't exist at compile-time
52- --> $DIR/option_env_unwrap.rs:22 :13
52+ --> $DIR/option_env_unwrap.rs:23 :13
5353 |
5454LL | let _ = option_env_unwrap_external!("PATH", "environment variable PATH isn't set");
5555 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments