File tree Expand file tree Collapse file tree 6 files changed +0
-119
lines changed Expand file tree Collapse file tree 6 files changed +0
-119
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,6 @@ pub mod option;
255
255
pub mod panic;
256
256
pub mod panicking;
257
257
pub mod pin;
258
- pub mod raw;
259
258
pub mod result;
260
259
#[ unstable( feature = "async_stream" , issue = "79024" ) ]
261
260
pub mod stream;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 29
29
#![ feature( try_find) ]
30
30
#![ feature( is_sorted) ]
31
31
#![ feature( pattern) ]
32
- #![ feature( raw) ]
33
32
#![ feature( sort_internals) ]
34
33
#![ feature( slice_partition_at_index) ]
35
34
#![ feature( maybe_uninit_uninit_array) ]
Original file line number Diff line number Diff line change @@ -97,28 +97,6 @@ fn test_transmute_copy() {
97
97
assert_eq ! ( 1 , unsafe { transmute_copy( & 1 ) } ) ;
98
98
}
99
99
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
-
122
100
#[ test]
123
101
#[ allow( dead_code) ]
124
102
fn test_discriminant_send_sync ( ) {
Original file line number Diff line number Diff line change 23
23
#![ feature( unwind_attributes) ]
24
24
#![ feature( abi_thiscall) ]
25
25
#![ feature( rustc_attrs) ]
26
- #![ feature( raw) ]
27
26
#![ panic_runtime]
28
27
#![ feature( panic_runtime) ]
29
28
// `real_imp` is unused with Miri, so silence warnings.
Original file line number Diff line number Diff line change 303
303
#![ feature( pin_static_ref) ]
304
304
#![ feature( prelude_import) ]
305
305
#![ feature( ptr_internals) ]
306
- #![ feature( raw) ]
307
306
#![ feature( ready_macro) ]
308
307
#![ feature( rustc_attrs) ]
309
308
#![ feature( rustc_private) ]
@@ -455,9 +454,6 @@ pub use core::pin;
455
454
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
456
455
pub use core:: ptr;
457
456
#[ 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" ) ]
461
457
pub use core:: result;
462
458
#[ unstable( feature = "async_stream" , issue = "79024" ) ]
463
459
pub use core:: stream;
You can’t perform that action at this time.
0 commit comments