-
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 the core::raw / std::raw module #84207
Conversation
It only contains the `TraitObject` struct which exposes components of wide pointer. Pointer metadata APIs are designed to replace this: rust-lang#81513
r? @dtolnay (rust-highfive has picked a reviewer for you, use r? to override) |
CC @rust-lang/libs, although this already went through FCP as part of rust-lang/rfcs#2580 |
This comment has been minimized.
This comment has been minimized.
library/std/src/lib.rs
Outdated
@@ -456,6 +456,7 @@ pub use core::pin; | |||
#[stable(feature = "rust1", since = "1.0.0")] | |||
pub use core::ptr; | |||
#[stable(feature = "rust1", since = "1.0.0")] | |||
#[allow(deprecated_in_future)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it wants this to be:
#[allow(deprecated_in_future)] | |
#[allow(deprecated)] |
given that 1.53.0 is already the present as far as nightly is concerned. Otherwise it's currently failing with:
error: use of deprecated module `core::raw`: use pointer metadata APIs instead https://github.com/rust-lang/rust/issues/81513
--> library/std/src/lib.rs:460:9
|
460 | pub use core::raw;
| ^^^^^^^^^
|
= note: `-D deprecated` implied by `-D warnings`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like stage0 (compiling from beta) emits deprecated_in_future
and stage1+ emits deprecated
This comment has been minimized.
This comment has been minimized.
library/std/src/lib.rs
Outdated
@@ -456,6 +456,7 @@ pub use core::pin; | |||
#[stable(feature = "rust1", since = "1.0.0")] | |||
pub use core::ptr; | |||
#[stable(feature = "rust1", since = "1.0.0")] | |||
#[allow(deprecated)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#[allow(deprecated)] | |
#[allow(deprecated, deprecated_in_future)] |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
c234484
to
4d683c0
Compare
@bors r+ |
📌 Commit 4d683c0 has been approved by |
☀️ Test successful - checks-actions |
…apin Remove the deprecated `core::raw` and `std::raw` module. A few months has passed since rust-lang#84207. I think now it's time for the final removal. Closes rust-lang#27751. r? `@m-ou-se`
It only contains the
TraitObject
struct which exposes components of wide pointer. Pointer metadata APIs are designed to replace this: #81513