File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -462,7 +462,6 @@ fn register_or_cluster_block(
462
462
463
463
if is_region_a_union {
464
464
let name = & reg_block_field. field . ident ;
465
- let mut_name = Ident :: new ( & format ! ( "{}_mut" , name. as_ref( ) . unwrap( ) ) , span) ;
466
465
let ty = & reg_block_field. field . ty ;
467
466
let offset = reg_block_field. offset as usize ;
468
467
have_accessors = true ;
@@ -474,14 +473,6 @@ fn register_or_cluster_block(
474
473
& * ( ( ( self as * const Self ) as * const u8 ) . add( #offset) as * const #ty)
475
474
}
476
475
}
477
-
478
- #[ doc = #comment]
479
- #[ inline( always) ]
480
- pub fn #mut_name( & self ) -> & mut #ty {
481
- unsafe {
482
- & mut * ( ( ( self as * const Self ) as * mut u8 ) . add( #offset) as * mut #ty)
483
- }
484
- }
485
476
} ) ;
486
477
} else {
487
478
region_fields. extend ( quote ! {
You can’t perform that action at this time.
0 commit comments