aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/module.rs
diff options
context:
space:
mode:
Diffstat (limited to 'macros/src/codegen/module.rs')
-rw-r--r--macros/src/codegen/module.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/src/codegen/module.rs b/macros/src/codegen/module.rs
index ad20f139..4b3d0cf7 100644
--- a/macros/src/codegen/module.rs
+++ b/macros/src/codegen/module.rs
@@ -253,7 +253,7 @@ pub fn codegen(ctxt: Context, resources_tick: bool, app: &App, extra: &Extra) ->
}
if let Context::Init = ctxt {
- let init = &app.inits[0];
+ let init = &app.inits.first().unwrap();
if init.returns_late_resources {
let late_resources = util::late_resources_ident(&init.name);
191/rtic/commit/book/en/src/internals/timer-queue.md?id=ea02405ef0cea368707b723054b699fa423d4823&follow=1'>document resolution and range of Instant and DurationGravatar Jorge Aparicio 1-0/+31 2019-05-08fix typoGravatar Jorge Aparicio 1-1/+1 2019-05-08write generated code to disk for easier inspectionGravatar Jorge Aparicio 2-1/+74 now that the generated code is actually readable let's make it easier to access this commit also documents how to inspect the generated code via `rtfm-expansion.rs` and `cargo-expand` 2019-05-01document internalsGravatar Jorge Aparicio 10-5/+1767 note that this assumes that RFC #155 has been implemented 2019-05-01book: indirection for faster message passingGravatar Jorge Aparicio 5-3/+128 2019-05-01rtfm::app: update error messageGravatar Jorge Aparicio 1-1/+1 2019-05-01push docs to another repo & update READMEGravatar Jorge Aparicio 2-4/+5 2019-05-01travis: disable builds on stableGravatar Jorge Aparicio 1-6/+6 2019-05-01ci: the singleton example has been removedGravatar Jorge Aparicio 1-8/+0 2019-05-01update the bookGravatar Jorge Aparicio 8-48/+20 2019-05-01test RFC 147Gravatar Jorge Aparicio 5-0/+93 2019-05-01update compile-fail testsGravatar Jorge Aparicio 35-179/+95 2019-05-01update compile-pass testsGravatar Jorge Aparicio 10-212/+107 2019-05-01update examplesGravatar Jorge Aparicio 23-235/+159 2019-05-01implement RFCs 147 and 155, etc.Gravatar Jorge Aparicio 11-2252/+2412 This commit: - Implements RFC 147: "all functions must be safe" - Implements RFC 155: "explicit Context parameter" - Implements the pending breaking change #141: reject assign syntax in `init` (which was used to initialize late resources) - Refactors code generation to make it more readable -- there are no more random identifiers in the output -- and align it with the book description of RTFM internals. - Makes the framework hard depend on `core::mem::MaybeUninit` and thus will require nightly until that API is stabilized. - Fixes a ceiling analysis bug where the priority of the system timer was not considered in the analysis. - Shrinks the size of all the internal queues by turning `AtomicUsize` indices into `AtomicU8`s. - Removes the integration with `owned_singleton`. 2019-04-21bors: do not merge PRs labeled S-blockedGravatar Jorge Aparicio 1-1/+2 2019-04-21v0.4.3Gravatar Jorge Aparicio 4-8/+31