Skip to content

Commit b80a96c

Browse files
committed
Deprecate the core::raw / std::raw module
It only contains the `TraitObject` struct which exposes components of wide pointer. Pointer metadata APIs are designed to replace this: #81513
1 parent 16bf626 commit b80a96c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

library/core/src/raw.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#![allow(missing_docs)]
22
#![unstable(feature = "raw", issue = "27751")]
3+
#![rustc_deprecated(
4+
since = "1.53.0",
5+
reason = "use pointer metadata APIs instead https://github.com/rust-lang/rust/issues/81513"
6+
)]
37

48
//! Contains struct definitions for the layout of compiler built-in types.
59
//!

library/std/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ pub use core::pin;
456456
#[stable(feature = "rust1", since = "1.0.0")]
457457
pub use core::ptr;
458458
#[stable(feature = "rust1", since = "1.0.0")]
459+
#[allow(deprecated_in_future)]
459460
pub use core::raw;
460461
#[stable(feature = "rust1", since = "1.0.0")]
461462
pub use core::result;

0 commit comments

Comments
 (0)