-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
deprecate wrapping_offset_from #73580
deprecate wrapping_offset_from #73580
Conversation
cc @scottmcm who originally mused whether we want a |
cebf727
to
467415d
Compare
r=me assuming no objections. |
@rust-lang/libs any objections to this deprecation of the unstable method
|
I see a 👍 from sfackler so with three of us I think this is good to go. |
📌 Commit 467415d has been approved by |
@bors rollup |
…from, r=Amanieu deprecate wrapping_offset_from As per rust-lang#41079 (comment) which seems like a consensus. r? @Amanieu
…from, r=Amanieu deprecate wrapping_offset_from As per rust-lang#41079 (comment) which seems like a consensus. r? @Amanieu
…from, r=Amanieu deprecate wrapping_offset_from As per rust-lang#41079 (comment) which seems like a consensus. r? @Amanieu
Rollup of 6 pull requests Successful merges: - rust-lang#71660 (impl PartialEq<Vec<B>> for &[A], &mut [A]) - rust-lang#72623 (Prefer accessible paths in 'use' suggestions) - rust-lang#73502 (Add E0765) - rust-lang#73580 (deprecate wrapping_offset_from) - rust-lang#73582 (Miri: replace many bug! by span_bug!) - rust-lang#73585 (Do not send a notification for P-high stable regressions) Failed merges: - rust-lang#73581 (Create 0766 error code) r? @ghost
Thanks for the ping here, @oli-obk. My recollection is that that musing was from way back when the only method was the safe one (https://doc.rust-lang.org/1.22.0/std/primitive.pointer.html#method.offset_to), and I thought that there should probably be an unsafe one. I have no attachment to the safe one, and am fine with its removal. |
`wrapping_offset_from` was deprecated by <rust-lang/rust#73580>.
As per #41079 (comment) which seems like a consensus.
r? @Amanieu