File tree 1 file changed +0
-18
lines changed
1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ fn main() {
10
10
direct_mut_to_const_raw ( ) ;
11
11
local_addr_of_mut ( ) ;
12
12
returned_mut_is_usable ( ) ;
13
- raw_children_of_refmut_can_alias ( ) ;
14
13
15
14
// Stacked Borrows tests
16
15
read_does_not_invalidate1 ( ) ;
@@ -356,20 +355,3 @@ fn write_does_not_invalidate_all_aliases() {
356
355
other:: lib2 ( ) ;
357
356
assert_eq ! ( * x, 1337 ) ; // oops, the value changed! I guess not all pointers were invalidated
358
357
}
359
-
360
- fn raw_children_of_refmut_can_alias ( ) {
361
- fn test_with_protector ( x : & mut u8 ) {
362
- unsafe {
363
- let child1 = & raw mut * x;
364
- let child2 = & raw mut * x;
365
- // We create two raw aliases of `x`: they have the exact same
366
- // tag and can be used interchangeably.
367
- child1. write ( 1 ) ;
368
- child2. write ( 2 ) ;
369
- child1. write ( 1 ) ;
370
- child2. write ( 2 ) ;
371
- }
372
- }
373
-
374
- test_with_protector ( & mut 42u8 ) ;
375
- }
You can’t perform that action at this time.
0 commit comments