From 81d7d7aabd5cdfb1e574a7ebae0b884e3aad8dea Mon Sep 17 00:00:00 2001 From: onur-ozkan Date: Sun, 25 Feb 2024 01:11:09 +0300 Subject: resolve clippy errors Signed-off-by: onur-ozkan --- compiler/rustc_codegen_llvm/src/context.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/rustc_codegen_llvm/src') diff --git a/compiler/rustc_codegen_llvm/src/context.rs b/compiler/rustc_codegen_llvm/src/context.rs index f89c8c9f836..f9f7e0d4e37 100644 --- a/compiler/rustc_codegen_llvm/src/context.rs +++ b/compiler/rustc_codegen_llvm/src/context.rs @@ -326,6 +326,7 @@ pub unsafe fn create_module<'ll>( // // On the wasm targets it will get hooked up to the "producer" sections // `processed-by` information. + #[allow(clippy::option_env_unwrap)] let rustc_producer = format!("rustc version {}", option_env!("CFG_VERSION").expect("CFG_VERSION")); let name_metadata = llvm::LLVMMDStringInContext( -- cgit 1.4.1-3-g733a5