Skip to content

Commit

Permalink
Deprecate the core::raw / std::raw module
Browse files Browse the repository at this point in the history
It only contains the `TraitObject` struct which exposes components
of wide pointer. Pointer metadata APIs are designed to replace this:
#81513
  • Loading branch information
SimonSapin committed Apr 15, 2021
1 parent 16bf626 commit b80a96c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/core/src/raw.rs
@@ -1,5 +1,9 @@
#![allow(missing_docs)]
#![unstable(feature = "raw", issue = "27751")]
#![rustc_deprecated(
since = "1.53.0",
reason = "use pointer metadata APIs instead https://github.com/rust-lang/rust/issues/81513"
)]

//! Contains struct definitions for the layout of compiler built-in types.
//!
Expand Down
1 change: 1 addition & 0 deletions library/std/src/lib.rs
Expand Up @@ -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)]
pub use core::raw;
#[stable(feature = "rust1", since = "1.0.0")]
pub use core::result;
Expand Down

0 comments on commit b80a96c

Please sign in to comment.