aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/util.rs
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2021-07-07 21:03:56 +0200
committerGravatar Emil Fresk <emil.fresk@gmail.com> 2021-07-07 21:04:31 +0200
commitd7393c5b27fc95f3569d12137ee0c4d03ff7e2ba (patch)
treeb90e094920cb859bb9e401f3acdddcadf675c834 /macros/src/codegen/util.rs
parentef5307d83a1d62df0569d78db75d4006147c927d (diff)
downloadrtic-d7393c5b27fc95f3569d12137ee0c4d03ff7e2ba.tar.gz
rtic-d7393c5b27fc95f3569d12137ee0c4d03ff7e2ba.tar.zst
rtic-d7393c5b27fc95f3569d12137ee0c4d03ff7e2ba.zip
Full local resource syntax working
Diffstat (limited to 'macros/src/codegen/util.rs')
-rw-r--r--macros/src/codegen/util.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/macros/src/codegen/util.rs b/macros/src/codegen/util.rs
index dd0fb6d9..e3df2076 100644
--- a/macros/src/codegen/util.rs
+++ b/macros/src/codegen/util.rs
@@ -163,19 +163,6 @@ pub fn link_section_uninit(empty_expr: bool) -> Option<TokenStream2> {
Some(quote!(#[link_section = #section]))
}
-/// Generates a pre-reexport identifier for the "locals" struct
-pub fn locals_ident(ctxt: Context, app: &App) -> Ident {
- let mut s = match ctxt {
- Context::Init => app.init.name.to_string(),
- Context::Idle => app.idle.as_ref().unwrap().name.to_string(),
- Context::HardwareTask(ident) | Context::SoftwareTask(ident) => ident.to_string(),
- };
-
- s.push_str("Locals");
-
- Ident::new(&s, Span::call_site())
-}
-
// Regroups the inputs of a task
//
// `inputs` could be &[`input: Foo`] OR &[`mut x: i32`, `ref y: i64`]