about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Burka <alex@alexburka.com>2017-07-05 21:12:09 +0000
committerAlex Burka <alex@alexburka.com>2017-07-06 20:13:42 +0000
commit9c0fa15d2cc54e28f7cb3f9ce6eb646668eb1260 (patch)
treea46bb8e217ab2f6f0e47c44e50ee60e2d74f0f9c
parent55dccb99fd3e39701eebc096b180d590f05d3699 (diff)
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-nursery/reference#77).
-rw-r--r--src/librustc_typeck/diagnostics.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs
index aaba2f9aa2a..41605cfcb33 100644
--- a/src/librustc_typeck/diagnostics.rs
+++ b/src/librustc_typeck/diagnostics.rs
@@ -4632,9 +4632,10 @@ unsafe {
 }
 ```
 
-To fix this error, you need to pass variables corresponding to C types as much
-as possible. For better explanations, see The Rust Book:
-https://doc.rust-lang.org/book/
+Certain Rust types must be cast before passing them to a variadic function,
+because of arcane ABI rules dictated by the C standard. To fix the error,
+cast the value to the type specified by the error message (which you may need
+to import from `std::os::raw`).
 "##,
 
 E0618: r##"