aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/util.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2019-08-20 15:11:24 +0200
committerGravatar Jorge Aparicio <jorge@japaric.io> 2019-08-20 15:17:37 +0200
commit0e146f8d1142672725b6abb38478f503a9261c80 (patch)
tree846aedddb91908ac831cd15f7877d5ccfbd9a039 /macros/src/codegen/util.rs
parent2f4f1857788a3c2c5e8b97a5b7cc2c39c26c659f (diff)
downloadrtic-0e146f8d1142672725b6abb38478f503a9261c80.tar.gz
rtic-0e146f8d1142672725b6abb38478f503a9261c80.tar.zst
rtic-0e146f8d1142672725b6abb38478f503a9261c80.zip
adapt to changes in rtfm-syntax
Diffstat (limited to 'macros/src/codegen/util.rs')
-rw-r--r--macros/src/codegen/util.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/macros/src/codegen/util.rs b/macros/src/codegen/util.rs
index f5f96dea..207272dc 100644
--- a/macros/src/codegen/util.rs
+++ b/macros/src/codegen/util.rs
@@ -3,13 +3,13 @@ use core::sync::atomic::{AtomicUsize, Ordering};
use proc_macro2::{Span, TokenStream as TokenStream2};
use quote::quote;
use rtfm_syntax::{ast::App, Context, Core};
-use syn::{ArgCaptured, Attribute, Ident, IntSuffix, LitInt};
+use syn::{Attribute, Ident, LitInt, PatType};
use crate::check::Extra;
/// Turns `capacity` into an unsuffixed integer literal
pub fn capacity_literal(capacity: u8) -> LitInt {
- LitInt::new(u64::from(capacity), IntSuffix::None, Span::call_site())
+ LitInt::new(&capacity.to_string(), Span::call_site())
}
/// Turns `capacity` into a type-level (`typenum`) integer
@@ -194,7 +194,7 @@ pub fn rendezvous_ident(core: Core) -> Ident {
//
// `inputs` could be &[`input: Foo`] OR &[`mut x: i32`, `ref y: i64`]
pub fn regroup_inputs(
- inputs: &[ArgCaptured],
+ inputs: &[PatType],
) -> (
// args e.g. &[`_0`], &[`_0: i32`, `_1: i64`]
Vec<TokenStream2>,