Skip to content

Commit 2203df0

Browse files
committed
Use env! instead of option_env!.unwrap
1 parent 15b3098 commit 2203df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_session/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ pub fn host_triple() -> &'static str {
786786
// Instead of grabbing the host triple (for the current host), we grab (at
787787
// compile time) the target triple that this rustc is built with and
788788
// calling that (at runtime) the host triple.
789-
(option_env!("CFG_COMPILER_HOST_TRIPLE")).expect("CFG_COMPILER_HOST_TRIPLE")
789+
env!("CFG_COMPILER_HOST_TRIPLE")
790790
}
791791

792792
impl Default for Options {

0 commit comments

Comments
 (0)