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(
462462
463463 if is_region_a_union {
464464 let name = & reg_block_field. field . ident ;
465- let mut_name = Ident :: new ( & format ! ( "{}_mut" , name. as_ref( ) . unwrap( ) ) , span) ;
466465 let ty = & reg_block_field. field . ty ;
467466 let offset = reg_block_field. offset as usize ;
468467 have_accessors = true ;
@@ -474,14 +473,6 @@ fn register_or_cluster_block(
474473 & * ( ( ( self as * const Self ) as * const u8 ) . add( #offset) as * const #ty)
475474 }
476475 }
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- }
485476 } ) ;
486477 } else {
487478 region_fields. extend ( quote ! {
You can’t perform that action at this time.
0 commit comments