@@ -7,7 +7,7 @@ use std::borrow::Cow;
77use std:: fs:: File ;
88use std:: io:: Write ;
99
10- use crate :: util:: { self , Config , ToSanitizedCase , U32Ext } ;
10+ use crate :: util:: { self , Config , ToSanitizedCase } ;
1111use crate :: Target ;
1212use anyhow:: { Context , Result } ;
1313
@@ -146,15 +146,10 @@ pub fn render(d: &Device, config: &Config, device_x: &mut String) -> Result<Toke
146146 } ) ;
147147 }
148148
149- let reg_sizes = util:: get_register_sizes ( d) ;
150-
151149 let generic_file = std:: str:: from_utf8 ( include_bytes ! ( "generic.rs" ) ) ?;
152150 if config. generic_mod {
153151 let mut file = File :: create ( config. output_dir . join ( "generic.rs" ) ) ?;
154152 writeln ! ( file, "{}" , generic_file) ?;
155- for ty in reg_sizes {
156- writeln ! ( file, "impl_proxy!({});" , ty. size_to_str( ) ?) ?;
157- }
158153 if config. target == Target :: Msp430 && config. nightly {
159154 let msp430_atomic_file =
160155 std:: str:: from_utf8 ( include_bytes ! ( "generic_msp430_atomic.rs" ) ) ?;
@@ -175,10 +170,6 @@ pub fn render(d: &Device, config: &Config, device_x: &mut String) -> Result<Toke
175170 }
176171 } else {
177172 let mut tokens = syn:: parse_file ( generic_file) ?. into_token_stream ( ) ;
178- for ty in reg_sizes {
179- let ty = Ident :: new ( ty. size_to_str ( ) ?, Span :: call_site ( ) ) ;
180- tokens. extend ( quote ! { impl_proxy!( #ty) ; } ) ;
181- }
182173 if config. target == Target :: Msp430 && config. nightly {
183174 let msp430_atomic_file =
184175 std:: str:: from_utf8 ( include_bytes ! ( "generic_msp430_atomic.rs" ) ) ?;
0 commit comments