aboutsummaryrefslogtreecommitdiff
path: root/macros/src
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2019-04-16 23:17:28 +0200
committerGravatar Jorge Aparicio <jorge@japaric.io> 2019-04-16 23:17:28 +0200
commit10d2638488797fa73886e173e4de1895128836fb (patch)
tree9ba97b85998bd099752c9ca501f37ff04872ecf0 /macros/src
parent8da925647ea1ce47e876526d0bd3d918e782d578 (diff)
downloadrtic-10d2638488797fa73886e173e4de1895128836fb.tar.gz
rtic-10d2638488797fa73886e173e4de1895128836fb.tar.zst
rtic-10d2638488797fa73886e173e4de1895128836fb.zip
[NFC] fix nightly ci
Diffstat (limited to 'macros/src')
-rw-r--r--macros/src/codegen.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/macros/src/codegen.rs b/macros/src/codegen.rs
index 1d201c08..8a220fea 100644
--- a/macros/src/codegen.rs
+++ b/macros/src/codegen.rs
@@ -136,7 +136,7 @@ pub fn app(app: &App, analysis: &Analysis) -> TokenStream {
if res.expr.is_none() {
let alias = &ctxt.statics[name];
- Some(quote!(#alias.set(res.#name);))
+ Some(quote!(#alias.write(res.#name);))
} else {
None
}
@@ -338,7 +338,7 @@ fn init(ctxt: &mut Context, app: &App, analysis: &Analysis) -> (proc_macro2::Tok
let expr = &assign.right;
quote!(
#(#attrs)*
- unsafe { #alias.set(#expr); }
+ unsafe { #alias.write(#expr); }
)
} else {
let left = &assign.left;
@@ -1945,32 +1945,32 @@ fn pre_init(ctxt: &Context, app: &App, analysis: &Analysis) -> proc_macro2::Toke
// these are `MaybeUninit` arrays
for task in ctxt.tasks.values() {
let inputs = &task.inputs;
- exprs.push(quote!(#inputs.set(core::mem::uninitialized());))
+ exprs.push(quote!(#inputs.write(core::mem::uninitialized());))
}
#[cfg(feature = "timer-queue")]
for task in ctxt.tasks.values() {
let scheduleds = &task.scheduleds;
- exprs.push(quote!(#scheduleds.set(core::mem::uninitialized());))
+ exprs.push(quote!(#scheduleds.write(core::mem::uninitialized());))
}
// these are `MaybeUninit` `ReadyQueue`s
for dispatcher in ctxt.dispatchers.values() {
let rq = &dispatcher.ready_queue;
- exprs.push(quote!(#rq.set(rtfm::export::ReadyQueue::new_sc());))
+ exprs.push(quote!(#rq.write(rtfm::export::ReadyQueue::new_sc());))
}
// these are `MaybeUninit` `FreeQueue`s
for task in ctxt.tasks.values() {
let fq = &task.free_queue;
- exprs.push(quote!(#fq.set(rtfm::export::FreeQueue::new_sc());))
+ exprs.push(quote!(#fq.write(rtfm::export::FreeQueue::new_sc());))
}
}
// Initialize the timer queue
if !analysis.timer_queue.tasks.is_empty() {
let tq = &ctxt.timer_queue;
- exprs.push(quote!(#tq.set(rtfm::export::TimerQueue::new(p.SYST));));
+ exprs.push(quote!(#tq.write(rtfm::export::TimerQueue::new(p.SYST));));
}
// Populate the `FreeQueue`s