Skip to content
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

Tutorial: Update "Interacting with foreign code" to not use "uint" #3031

Closed
jruderman opened this issue Jul 26, 2012 · 1 comment
Closed

Comments

@jruderman
Copy link
Contributor

The example at the top of section 16 "Interacting with foreign code" warns:

/Users/jruderman/Desktop/7.rs:6:26: 6:30 warning: found rust type `uint` in foreign module, while libc::c_uint or libc::c_ulong should be used
/Users/jruderman/Desktop/7.rs:6     fn SHA1(src: *u8, sz: uint, out: *u8) -> *u8;
                                                          ^~~~

Sections 16.3 "Unsafe pointers" and 16.6 "Passing structures" also need to be updated to not use uint.

@ghost ghost assigned catamorphism Jul 26, 2012
@catamorphism
Copy link
Contributor

On it.

bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
No combining for an item-like macro argument.
RalfJung pushed a commit to RalfJung/rust that referenced this issue Aug 21, 2023
tree borrows: more comments in foreign_read transition
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Update the s2n-quic submodule to bring in the latest proofs. This is to
ensure we don't break any of the existing proofs.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants