summaryrefslogtreecommitdiff
path: root/src/codegen/mod.rs
diff options
context:
space:
mode:
authorAlan Egerton <eggyal@gmail.com>2020-06-10 10:49:41 +0100
committerAlan Egerton <eggyal@gmail.com>2020-06-15 21:30:19 +0100
commitb54182b055857b203fccb83a4cb6026ac84207f5 (patch)
treed450312f66fa00e81f0d2a88253ff63d8263b2e5 /src/codegen/mod.rs
parent806887f05f2a28a1c1f6f16c249f094da8f3707d (diff)
Permit IntKind::Custom to represent Paths instead of just Idents
Diffstat (limited to 'src/codegen/mod.rs')
-rw-r--r--src/codegen/mod.rs5
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 {