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

no method named wrapping_offset_from found for raw pointer *mut i8errors #34

Closed
danielt998 opened this issue Dec 22, 2020 · 2 comments
Closed

Comments

@danielt998
Copy link

I get errors like the following when running on Ubuntu 18.04 on the master branch. Does any ideas what the cause could be?
error[E0599]: no method named `wrapping_offset_from` found for raw pointer `*mut i8` in the current scope --> util_linux/mdev.rs:582:17 | 582 | s.wrapping_offset_from(val) as libc::c_long as libc::c_int, | ^^^^^^^^^^^^^^^^^^^^ help: there is an associated function with a similar name: `wrapping_offset` | = note: try using `<*const T>::as_ref()` to get a reference to the type behind the pointer: https://doc.rust-lang.org/std/primitive.pointer.html#method.as_ref = note: using `<*const T>::as_ref()` on a pointer which is unaligned or points to invalid or uninitialized memory is undefined behavior

@danielt998
Copy link
Author

Think I was stuck on an old version of the Rust libs, sorry

@samuela
Copy link
Owner

samuela commented Dec 23, 2020

No worries, let me know if you come across any other issues!

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