diff options
author | Alan Egerton <eggyal@gmail.com> | 2020-06-10 10:49:41 +0100 |
---|---|---|
committer | Alan Egerton <eggyal@gmail.com> | 2020-06-15 21:30:19 +0100 |
commit | b54182b055857b203fccb83a4cb6026ac84207f5 (patch) | |
tree | d450312f66fa00e81f0d2a88253ff63d8263b2e5 /src/codegen/mod.rs | |
parent | 806887f05f2a28a1c1f6f16c249f094da8f3707d (diff) |
Permit IntKind::Custom to represent Paths instead of just Idents
Diffstat (limited to 'src/codegen/mod.rs')
-rw-r--r-- | src/codegen/mod.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/codegen/mod.rs b/src/codegen/mod.rs index cc9b8b41..026c2ff9 100644 --- a/src/codegen/mod.rs +++ b/src/codegen/mod.rs @@ -3328,10 +3328,7 @@ impl TryToRustTy for Type { IntKind::I64 => Ok(quote! { i64 }), IntKind::U64 => Ok(quote! { u64 }), IntKind::Custom { name, .. } => { - let ident = ctx.rust_ident_raw(name); - Ok(quote! { - #ident - }) + Ok(proc_macro2::TokenStream::from_str(name).unwrap()) } IntKind::U128 => { Ok(if ctx.options().rust_features.i128_and_u128 { |