Skip to content

Commit b6e81b9

Browse files
committed
Permit IntKind::Custom to represent Paths instead of just Idents
1 parent 16189e4 commit b6e81b9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/codegen/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3265,10 +3265,7 @@ impl TryToRustTy for Type {
32653265
IntKind::I64 => Ok(quote! { i64 }),
32663266
IntKind::U64 => Ok(quote! { u64 }),
32673267
IntKind::Custom { name, .. } => {
3268-
let ident = ctx.rust_ident_raw(name);
3269-
Ok(quote! {
3270-
#ident
3271-
})
3268+
Ok(proc_macro2::TokenStream::from_str(name).unwrap())
32723269
}
32733270
IntKind::U128 => {
32743271
Ok(if ctx.options().rust_features.i128_and_u128 {

0 commit comments

Comments
 (0)