diff options
author | 2023-01-10 21:03:10 +0100 | |
---|---|---|
committer | 2023-03-01 00:33:30 +0100 | |
commit | d6d58b0eb88242cf63724e1420bd29f8a4489916 (patch) | |
tree | d797b67b381947cc375d9c89cdc15d0cc98dee1a /macros/src/syntax/analyze.rs | |
parent | cd790a94286cdc307d399b7f7a43e305e90de5bf (diff) | |
download | rtic-d6d58b0eb88242cf63724e1420bd29f8a4489916.tar.gz rtic-d6d58b0eb88242cf63724e1420bd29f8a4489916.tar.zst rtic-d6d58b0eb88242cf63724e1420bd29f8a4489916.zip |
Async tasks can now take arguments at spawn again
Diffstat (limited to 'macros/src/syntax/analyze.rs')
-rw-r--r-- | macros/src/syntax/analyze.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/macros/src/syntax/analyze.rs b/macros/src/syntax/analyze.rs index b70ceb8b..3ed14877 100644 --- a/macros/src/syntax/analyze.rs +++ b/macros/src/syntax/analyze.rs @@ -287,6 +287,11 @@ pub(crate) fn app(app: &App) -> Result<Analysis, syn::Error> { let channel = channels.entry(spawnee_prio).or_default(); channel.tasks.insert(name.clone()); + + // All inputs are send as we do not know from where they may be spawned. + spawnee.inputs.iter().for_each(|input| { + send_types.insert(input.ty.clone()); + }); } // No channel should ever be empty |