์ด๊ฒ์๋ณด๊ณ ๋ ๊ฒ ๊ฐ๊ณ , ๊ฝค ์์ฃผ ์์ ๋๊ณ ๋ค์ ๊นจ์ก์ต๋๋ค ๐
ํ์ฌ ๋ฌธ์ ๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
Documenting rustc_trans v0.0.0 (file:///home/martin/programs/rust/src/librustc_trans)
error[E0308]: mismatched types
--> src/librustc_trans/back/write.rs:377:55
|
377 | llvm::LLVMRustSetInlineAsmDiagnosticHandler(llcx, inline_asm_handler, fv);
| ^^^^^^^^^^^^^^^^^^ expected enum `libc::c_void`, found a different enum `libc::c_void`
|
= note: expected type `unsafe extern "C" fn(*mut llvm::SMDiagnostic_opaque, *const libc::c_void, u32)`
found type `unsafe extern "C" fn(*mut llvm::SMDiagnostic_opaque, *const libc::c_void, u32) {back::write::inline_asm_handler}`
note: Perhaps two different versions of crate `libc` are being used?
--> src/librustc_trans/back/write.rs:377:55
|
377 | llvm::LLVMRustSetInlineAsmDiagnosticHandler(llcx, inline_asm_handler, fv);
| ^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> src/librustc_trans/back/write.rs:377:75
|
377 | llvm::LLVMRustSetInlineAsmDiagnosticHandler(llcx, inline_asm_handler, fv);
| ^^ expected enum `libc::c_void`, found a different enum `libc::c_void`
|
= note: expected type `*mut libc::c_void` (enum `libc::c_void`)
found type `*mut libc::c_void` (enum `libc::c_void`)
note: Perhaps two different versions of crate `libc` are being used?
--> src/librustc_trans/back/write.rs:377:75
|
377 | llvm::LLVMRustSetInlineAsmDiagnosticHandler(llcx, inline_asm_handler, fv);
| ^^
= help: here are some functions which might fulfill your needs:
- .offset(...)
- .wrapping_offset(...)
error[E0308]: mismatched types
--> src/librustc_trans/back/write.rs:378:49
|
378 | llvm::LLVMContextSetDiagnosticHandler(llcx, diagnostic_handler, fv);
| ^^^^^^^^^^^^^^^^^^ expected enum `libc::c_void`, found a different enum `libc::c_void`
|
= note: expected type `unsafe extern "C" fn(*mut llvm::DiagnosticInfo_opaque, *mut libc::c_void)`
found type `unsafe extern "C" fn(*mut llvm::DiagnosticInfo_opaque, *mut libc::c_void) {back::write::diagnostic_handler}`
note: Perhaps two different versions of crate `libc` are being used?
--> src/librustc_trans/back/write.rs:378:49
|
378 | llvm::LLVMContextSetDiagnosticHandler(llcx, diagnostic_handler, fv);
| ^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> src/librustc_trans/back/write.rs:378:69
|
378 | llvm::LLVMContextSetDiagnosticHandler(llcx, diagnostic_handler, fv);
| ^^ expected enum `libc::c_void`, found a different enum `libc::c_void`
|
= note: expected type `*mut libc::c_void` (enum `libc::c_void`)
found type `*mut libc::c_void` (enum `libc::c_void`)
note: Perhaps two different versions of crate `libc` are being used?
--> src/librustc_trans/back/write.rs:378:69
|
378 | llvm::LLVMContextSetDiagnosticHandler(llcx, diagnostic_handler, fv);
| ^^
= help: here are some functions which might fulfill your needs:
- .offset(...)
- .wrapping_offset(...)
error: Compilation failed, aborting rustdoc
error: Could not document `rustc_trans`.
์ฐ๋ฆฌ๋ ํ์ ์ค์ ์ด๊ฒ์ ๋ ผ์ํ๊ณ , ์งง์ ๋น๋์ ์ปดํ์ผ๋ฌ ๋ฌธ์๋ฅผ ์ถ๊ฐํ๋ ๊ฒ์ด์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ ์ข์ ๋ฐฉ๋ฒ์ด๋ผ๊ณ ์๊ฐํฉ๋๋ค. ๊ทธ๋ฌ๋ ์ธ๋ถ ์ฌํญ์ ํด๊ฒฐํ๋ ๋ฐ๋ ์๊ฐ์ด ๊ฑธ๋ฆฝ๋๋ค.
๊ด๋ จ ๋ฌธ์ : # 44629
์ปดํ์ผ๋ฌ ๋ฌธ์๋ ๋ ์ด์ # 46278๋ก ๊นจ์ง ์ ์์ต๋๋ค.
์ด ๋ฌธ์ ๋ ์ข
๊ฒฐ ๋ ์ ์๋ค๊ณ ์๊ฐํฉ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์ฐ๋ฆฌ๋ ํ์ ์ค์ ์ด๊ฒ์ ๋ ผ์ํ๊ณ , ์งง์ ๋น๋์ ์ปดํ์ผ๋ฌ ๋ฌธ์๋ฅผ ์ถ๊ฐํ๋ ๊ฒ์ด์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ ์ข์ ๋ฐฉ๋ฒ์ด๋ผ๊ณ ์๊ฐํฉ๋๋ค. ๊ทธ๋ฌ๋ ์ธ๋ถ ์ฌํญ์ ํด๊ฒฐํ๋ ๋ฐ๋ ์๊ฐ์ด ๊ฑธ๋ฆฝ๋๋ค.