You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to be reported, and fixed and rebroken quite often 😅
The current problem is:
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`.
The text was updated successfully, but these errors were encountered:
We discussed this during the meeting, and we think that adding compiler docs to a short builder is a good way to solve this. Working out the specifics will take some time, though.
This seems to be reported, and fixed and rebroken quite often 😅
The current problem is:
The text was updated successfully, but these errors were encountered: