Skip to content

Commit 9c0fa15

Browse files
committed
fix description for E0617
It used to point to the Book, but no specific section, and in fact the information is not in the Book (see rust-lang/reference#77).
1 parent 55dccb9 commit 9c0fa15

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/librustc_typeck/diagnostics.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -4632,9 +4632,10 @@ unsafe {
46324632
}
46334633
```
46344634
4635-
To fix this error, you need to pass variables corresponding to C types as much
4636-
as possible. For better explanations, see The Rust Book:
4637-
https://doc.rust-lang.org/book/
4635+
Certain Rust types must be cast before passing them to a variadic function,
4636+
because of arcane ABI rules dictated by the C standard. To fix the error,
4637+
cast the value to the type specified by the error message (which you may need
4638+
to import from `std::os::raw`).
46384639
"##,
46394640

46404641
E0618: r##"

0 commit comments

Comments
 (0)