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

Deprecate the core::raw / std::raw module #84207

Merged
merged 4 commits into from
Apr 18, 2021

Conversation

SimonSapin
Copy link
Contributor

It only contains the TraitObject struct which exposes components of wide pointer. Pointer metadata APIs are designed to replace this: #81513

It only contains the `TraitObject` struct which exposes components
of wide pointer. Pointer metadata APIs are designed to replace this:
rust-lang#81513
@rust-highfive
Copy link
Collaborator

r? @dtolnay

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 15, 2021
@SimonSapin
Copy link
Contributor Author

CC @rust-lang/libs, although this already went through FCP as part of rust-lang/rfcs#2580

@rust-log-analyzer

This comment has been minimized.

@@ -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)]
Copy link
Member

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:

Suggested change
#[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`

Copy link
Contributor Author

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

@rust-log-analyzer

This comment has been minimized.

@@ -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)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#[allow(deprecated)]
#[allow(deprecated, deprecated_in_future)]

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@dtolnay
Copy link
Member

dtolnay commented Apr 17, 2021

@bors r+

@bors
Copy link
Contributor

bors commented Apr 17, 2021

📌 Commit 4d683c0 has been approved by dtolnay

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 17, 2021
@bors
Copy link
Contributor

bors commented Apr 18, 2021

⌛ Testing commit 4d683c0 with merge d7c3386...

@bors
Copy link
Contributor

bors commented Apr 18, 2021

☀️ Test successful - checks-actions
Approved by: dtolnay
Pushing d7c3386 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Apr 18, 2021
@bors bors merged commit d7c3386 into rust-lang:master Apr 18, 2021
@rustbot rustbot added this to the 1.53.0 milestone Apr 18, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 4, 2021
…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`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants