Dies scheint gemeldet zu werden und wird ziemlich oft behoben und repariert
Das aktuelle Problem ist:
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`.
Wir haben dies während des Meetings besprochen und denken, dass das Hinzufügen von Compilerdokumenten zu einem kurzen Builder eine gute Möglichkeit ist, dieses Problem zu lösen. Die Ausarbeitung der Einzelheiten wird jedoch einige Zeit in Anspruch nehmen.
Verwandtes Problem: #44629
Compiler-Dokumente können mit #46278 nicht mehr beschädigt werden.
Ich denke, dieses Thema kann geschlossen werden.
Hilfreichster Kommentar
Wir haben dies während des Meetings besprochen und denken, dass das Hinzufügen von Compilerdokumenten zu einem kurzen Builder eine gute Möglichkeit ist, dieses Problem zu lösen. Die Ausarbeitung der Einzelheiten wird jedoch einige Zeit in Anspruch nehmen.