Skip to content

Commit c99c4b1

Browse files
committed
current_dll_path: fix mistake in assertion message
1 parent e5a2a6a commit c99c4b1

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)