]> git.lizzy.rs Git - rust.git/commitdiff
fix description for E0617
authorAlex Burka <alex@alexburka.com>
Wed, 5 Jul 2017 21:12:09 +0000 (21:12 +0000)
committerAlex Burka <alex@alexburka.com>
Thu, 6 Jul 2017 20:13:42 +0000 (20:13 +0000)
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).

src/librustc_typeck/diagnostics.rs

index aaba2f9aa2a86967e96cd17c68dc99c2c2374153..41605cfcb331ba305620d2ae897498ba46afe01f 100644 (file)
@@ -4632,9 +4632,10 @@ pub fn get_x(&self) -> &u32 { &self.x }
 }
 ```
 
-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##"