aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/local_resources.rs
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2021-08-20 06:50:43 +0000
committerGravatar GitHub <noreply@github.com> 2021-08-20 06:50:43 +0000
commitf77b81e0eec2fa9053911d84f02b9a78b84486ec (patch)
treec39efb7e0259faef3f9ca03ac87b9d525c1e6093 /macros/src/codegen/local_resources.rs
parent3bf5a4f7a06fdb5d341d900c3e937d4c9afd2dda (diff)
parentcdbd8a2cede668e1181030bd7c439592a8f0e980 (diff)
downloadrtic-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/local_resources.rs')
-rw-r--r--macros/src/codegen/local_resources.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/macros/src/codegen/local_resources.rs b/macros/src/codegen/local_resources.rs
index 011d8867..ff534862 100644
--- a/macros/src/codegen/local_resources.rs
+++ b/macros/src/codegen/local_resources.rs
@@ -24,7 +24,7 @@ pub fn codegen(
for (name, res) in &app.local_resources {
let cfgs = &res.cfgs;
let ty = &res.ty;
- let mangled_name = util::mark_internal_ident(&util::static_local_resource_ident(name));
+ let mangled_name = util::static_local_resource_ident(name);
let attrs = &res.attrs;
// late resources in `util::link_section_uninit`
@@ -51,10 +51,7 @@ pub fn codegen(
let expr = &task_local.expr;
let attrs = &task_local.attrs;
- let mangled_name = util::mark_internal_ident(&util::declared_static_local_resource_ident(
- resource_name,
- &task_name,
- ));
+ let mangled_name = util::declared_static_local_resource_ident(resource_name, &task_name);
// For future use
// let doc = format!(" RTIC internal: {}:{}", file!(), line!());