diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2021-04-15 02:25:40 +0200 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2021-04-15 02:32:33 +0200 |
| commit | b80a96c286628453dec50b9609570949d5d387a9 (patch) | |
| tree | 9a6bde64d1d4ac7610eda163d62230a3489fe85f | |
| parent | 16bf626a31cb5b121d0bca2baa969b4f67eb0dab (diff) | |
| download | rust-b80a96c286628453dec50b9609570949d5d387a9.tar.gz rust-b80a96c286628453dec50b9609570949d5d387a9.zip | |
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: https://github.com/rust-lang/rust/issues/81513
| -rw-r--r-- | library/core/src/raw.rs | 4 | ||||
| -rw-r--r-- | library/std/src/lib.rs | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/library/core/src/raw.rs b/library/core/src/raw.rs index 1227d9b01f0..6d1e28f4cd7 100644 --- a/library/core/src/raw.rs +++ b/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. //! diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index 90603cd9836..39280f569c4 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -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; |
