Skip to content

Commit 109defb

Browse files
committed
Remove the deprecated core::raw and std::raw module.
1 parent 8783b1a commit 109defb

File tree

6 files changed

+0
-119
lines changed

6 files changed

+0
-119
lines changed

core/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ pub mod option;
255255
pub mod panic;
256256
pub mod panicking;
257257
pub mod pin;
258-
pub mod raw;
259258
pub mod result;
260259
#[unstable(feature = "async_stream", issue = "79024")]
261260
pub mod stream;

core/src/raw.rs

Lines changed: 0 additions & 90 deletions
This file was deleted.

core/tests/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#![feature(try_find)]
3030
#![feature(is_sorted)]
3131
#![feature(pattern)]
32-
#![feature(raw)]
3332
#![feature(sort_internals)]
3433
#![feature(slice_partition_at_index)]
3534
#![feature(maybe_uninit_uninit_array)]

core/tests/mem.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -97,28 +97,6 @@ fn test_transmute_copy() {
9797
assert_eq!(1, unsafe { transmute_copy(&1) });
9898
}
9999

100-
// Remove this test when `std::raw` is removed.
101-
// The replacement pointer metadata APIs are tested in library/core/tests/ptr.rs
102-
#[allow(deprecated)]
103-
#[test]
104-
fn test_transmute() {
105-
trait Foo {
106-
fn dummy(&self) {}
107-
}
108-
impl Foo for isize {}
109-
110-
let a = box 100isize as Box<dyn Foo>;
111-
unsafe {
112-
let x: ::core::raw::TraitObject = transmute(a);
113-
assert!(*(x.data as *const isize) == 100);
114-
let _x: Box<dyn Foo> = transmute(x);
115-
}
116-
117-
unsafe {
118-
assert_eq!(transmute::<_, Vec<u8>>("L".to_string()), [76]);
119-
}
120-
}
121-
122100
#[test]
123101
#[allow(dead_code)]
124102
fn test_discriminant_send_sync() {

panic_unwind/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#![feature(unwind_attributes)]
2424
#![feature(abi_thiscall)]
2525
#![feature(rustc_attrs)]
26-
#![feature(raw)]
2726
#![panic_runtime]
2827
#![feature(panic_runtime)]
2928
// `real_imp` is unused with Miri, so silence warnings.

std/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@
303303
#![feature(pin_static_ref)]
304304
#![feature(prelude_import)]
305305
#![feature(ptr_internals)]
306-
#![feature(raw)]
307306
#![feature(ready_macro)]
308307
#![feature(rustc_attrs)]
309308
#![feature(rustc_private)]
@@ -455,9 +454,6 @@ pub use core::pin;
455454
#[stable(feature = "rust1", since = "1.0.0")]
456455
pub use core::ptr;
457456
#[stable(feature = "rust1", since = "1.0.0")]
458-
#[allow(deprecated, deprecated_in_future)]
459-
pub use core::raw;
460-
#[stable(feature = "rust1", since = "1.0.0")]
461457
pub use core::result;
462458
#[unstable(feature = "async_stream", issue = "79024")]
463459
pub use core::stream;

0 commit comments

Comments
 (0)