diff --git a/compiler/rustc_session/src/filesearch.rs b/compiler/rustc_session/src/filesearch.rs index 6ec1466500a86..10c62d932ba26 100644 --- a/compiler/rustc_session/src/filesearch.rs +++ b/compiler/rustc_session/src/filesearch.rs @@ -258,7 +258,7 @@ pub unsafe fn dll_path(function: *mut std::ffi::c_void) -> Result Result { +pub unsafe fn dll_path(_function: *mut std::ffi::c_void) -> Result { Err("dll_path is not supported on WASI".to_string()) }