We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3aec6fa + c99c4b1 commit 6461160Copy full SHA for 6461160
compiler/rustc_session/src/filesearch.rs
@@ -82,7 +82,7 @@ fn current_dll_path() -> Result<PathBuf, String> {
82
let fname_ptr = info.dli_fname.as_ptr();
83
#[cfg(not(target_os = "cygwin"))]
84
let fname_ptr = {
85
- 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");
86
info.dli_fname
87
};
88
let bytes = CStr::from_ptr(fname_ptr).to_bytes();
0 commit comments