-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: tutorial ffi: the example compilation fails #5871
Comments
I actually rewrote the FFI tutorial, but the doc bot hasn't regenerated it because incoming hasn't been merged to master for a while. Until then you can look at a less pretty version on GitHub: https://github.com/mozilla/rust/blob/incoming/doc/tutorial-ffi.md |
I'll look at it, thank you
|
…flip1995 Lint .min(x).max(y) with x < y Fixes rust-lang#5854 changelog: Also lint `ord.min(a).max(b)`, where `a < b` in [`min_max`] lint
Rollup of 5 pull requests Successful merges: - rust-lang#5825 (Add the new lint `same_item_push`) - rust-lang#5869 (New lint against `Self` as an arbitrary self type) - rust-lang#5870 (enable #[allow(clippy::unsafe_derive_deserialize)]) - rust-lang#5871 (Lint .min(x).max(y) with x < y) - rust-lang#5874 (Make the docs clearer for new contributors) Failed merges: r? @ghost changelog: rollup
* Fix rust-lang#5871 * Only idempotence test is necessary * Update src/expr.rs Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com> --------- Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
The compilation of the first example of Rust Foreign Function Interface Tutorial fails:
with this error:
since the program argument, which is of
~str
type, must be clone()'d:The text was updated successfully, but these errors were encountered: