Skip to content

Commit 6461160

Browse files
authored
Rollup merge of #141261 - RalfJung:current_dll_path, r=Noratrieb
current_dll_path: fix mistake in assertion message Follow-up to #141239 r? `@Noratrieb`
2 parents 3aec6fa + c99c4b1 commit 6461160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_session/src/filesearch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ fn current_dll_path() -> Result<PathBuf, String> {
8282
let fname_ptr = info.dli_fname.as_ptr();
8383
#[cfg(not(target_os = "cygwin"))]
8484
let fname_ptr = {
85-
assert!(!info.dli_fname.is_null(), "the docs do not allow dladdr to be null");
85+
assert!(!info.dli_fname.is_null(), "dli_fname cannot be null");
8686
info.dli_fname
8787
};
8888
let bytes = CStr::from_ptr(fname_ptr).to_bytes();

0 commit comments

Comments
 (0)