diff options
author | 2021-08-20 06:50:43 +0000 | |
---|---|---|
committer | 2021-08-20 06:50:43 +0000 | |
commit | f77b81e0eec2fa9053911d84f02b9a78b84486ec (patch) | |
tree | c39efb7e0259faef3f9ca03ac87b9d525c1e6093 /macros/src/codegen/module.rs | |
parent | 3bf5a4f7a06fdb5d341d900c3e937d4c9afd2dda (diff) | |
parent | cdbd8a2cede668e1181030bd7c439592a8f0e980 (diff) | |
download | rtic-f77b81e0eec2fa9053911d84f02b9a78b84486ec.tar.gz rtic-f77b81e0eec2fa9053911d84f02b9a78b84486ec.tar.zst rtic-f77b81e0eec2fa9053911d84f02b9a78b84486ec.zip |
Merge #515
515: `mark_internal_ident` cleanup r=korken89 a=datdenkikniet
Refactor so that all `idents` that had to call `mark_ident_internal` before now call `mark_name_internal` in the `util` module by default.
The commits can (and probably should) be squashed, they're separated for clarity.
Fixes #512
Co-authored-by: datdenkikniet <jcdra1@gmail.com>
Diffstat (limited to 'macros/src/codegen/module.rs')
-rw-r--r-- | macros/src/codegen/module.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/macros/src/codegen/module.rs b/macros/src/codegen/module.rs index cac89c7d..ddaf1e52 100644 --- a/macros/src/codegen/module.rs +++ b/macros/src/codegen/module.rs @@ -67,7 +67,6 @@ pub fn codegen( if ctxt.has_local_resources(app) { let ident = util::local_resources_ident(ctxt, app); - let ident = util::mark_internal_ident(&ident); let lt = if local_resources_tick { lt = Some(quote!('a)); Some(quote!('a)) @@ -90,7 +89,6 @@ pub fn codegen( if ctxt.has_shared_resources(app) { let ident = util::shared_resources_ident(ctxt, app); - let ident = util::mark_internal_ident(&ident); let lt = if shared_resources_tick { lt = Some(quote!('a)); Some(quote!('a)) @@ -212,11 +210,8 @@ pub fn codegen( let args = &args; let tupled = &tupled; let fq = util::fq_ident(name); - let fq = util::mark_internal_ident(&fq); let rq = util::rq_ident(priority); - let rq = util::mark_internal_ident(&rq); let inputs = util::inputs_ident(name); - let inputs = util::mark_internal_ident(&inputs); let device = &extra.device; let enum_ = util::interrupt_ident(); @@ -266,16 +261,13 @@ pub fn codegen( // Schedule caller for (_, monotonic) in &app.monotonics { let instants = util::monotonic_instants_ident(name, &monotonic.ident); - let instants = util::mark_internal_ident(&instants); let monotonic_name = monotonic.ident.to_string(); let tq = util::tq_ident(&monotonic.ident.to_string()); - let tq = util::mark_internal_ident(&tq); let t = util::schedule_t_ident(); let m = &monotonic.ident; let mono_type = &monotonic.ident; let m_ident = util::monotonic_ident(&monotonic_name); - let m_ident = util::mark_internal_ident(&m_ident); let m_isr = &monotonic.args.binds; let enum_ = util::interrupt_ident(); @@ -293,7 +285,7 @@ pub fn codegen( ) }; - let tq_marker = util::mark_internal_ident(&util::timer_queue_marker_ident()); + let tq_marker = &util::timer_queue_marker_ident(); // For future use // let doc = format!(" RTIC internal: {}:{}", file!(), line!()); |