mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-19 06:15:45 +01:00
Use mark_internal_name by default for methods in util to make usage of these functions more straightforward.
fq_ident is always internal rq_ident is always internal monotonic_ident is always internal inputs_ident is always internal local_resources_ident is always internal shared_resources_ident is always internal monotonic_instants_ident is always internal tq_ident is always internal timer_queue_marker_ident is always internal static_shared_resource_ident is always internal static_local_resource_ident is always internal declared_static_local_resource_ident is always internal Only names, not idents, are now marked as internal Use same rtic internal everywhere
This commit is contained in:
parent
3bf5a4f7a0
commit
cdbd8a2ced
12 changed files with 40 additions and 89 deletions
|
|
@ -44,11 +44,9 @@ pub fn codegen(ctxt: Context, needs_lt: &mut bool, app: &App) -> (TokenStream2,
|
|||
};
|
||||
|
||||
let mangled_name = if matches!(task_local, TaskLocal::External) {
|
||||
util::mark_internal_ident(&util::static_local_resource_ident(name))
|
||||
util::static_local_resource_ident(name)
|
||||
} else {
|
||||
util::mark_internal_ident(&util::declared_static_local_resource_ident(
|
||||
name, &task_name,
|
||||
))
|
||||
util::declared_static_local_resource_ident(name, &task_name)
|
||||
};
|
||||
|
||||
fields.push(quote!(
|
||||
|
|
@ -86,7 +84,6 @@ pub fn codegen(ctxt: Context, needs_lt: &mut bool, app: &App) -> (TokenStream2,
|
|||
|
||||
let doc = format!("Local resources `{}` has access to", ctxt.ident(app));
|
||||
let ident = util::local_resources_ident(ctxt, app);
|
||||
let ident = util::mark_internal_ident(&ident);
|
||||
let item = quote!(
|
||||
#[allow(non_snake_case)]
|
||||
#[allow(non_camel_case_types)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue