From c99c4b17b2a28f4056cbd460bfbf8cb27bc0be64 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Mon, 19 May 2025 20:20:34 +0200 Subject: [PATCH] current_dll_path: fix mistake in assertion message --- compiler/rustc_session/src/filesearch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_session/src/filesearch.rs b/compiler/rustc_session/src/filesearch.rs index cb3e9c80a131d..92f1bd8ab7367 100644 --- a/compiler/rustc_session/src/filesearch.rs +++ b/compiler/rustc_session/src/filesearch.rs @@ -82,7 +82,7 @@ fn current_dll_path() -> Result { let fname_ptr = info.dli_fname.as_ptr(); #[cfg(not(target_os = "cygwin"))] let fname_ptr = { - assert!(!info.dli_fname.is_null(), "the docs do not allow dladdr to be null"); + assert!(!info.dli_fname.is_null(), "dli_fname cannot be null"); info.dli_fname }; let bytes = CStr::from_ptr(fname_ptr).to_bytes();