diff options
| author | Ralf Jung <post@ralfj.de> | 2025-05-19 20:20:34 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-05-19 20:20:54 +0200 |
| commit | c99c4b17b2a28f4056cbd460bfbf8cb27bc0be64 (patch) | |
| tree | b295174e53cc4963e9f45c06854b186eee420555 /compiler/rustc_session/src/filesearch.rs | |
| parent | e5a2a6a15d05a4d4aad43f399dbe4242e0b2226d (diff) | |
| download | rust-c99c4b17b2a28f4056cbd460bfbf8cb27bc0be64.tar.gz rust-c99c4b17b2a28f4056cbd460bfbf8cb27bc0be64.zip | |
current_dll_path: fix mistake in assertion message
Diffstat (limited to 'compiler/rustc_session/src/filesearch.rs')
| -rw-r--r-- | compiler/rustc_session/src/filesearch.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_session/src/filesearch.rs b/compiler/rustc_session/src/filesearch.rs index cb3e9c80a13..92f1bd8ab73 100644 --- a/compiler/rustc_session/src/filesearch.rs +++ b/compiler/rustc_session/src/filesearch.rs @@ -82,7 +82,7 @@ fn current_dll_path() -> Result<PathBuf, String> { 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(); |
