Skip to content

Commit 807fa1e

Browse files
heycamemilio
authored andcommitted
Rename Item::canonical_name_cache for consistency.
1 parent a7fb8bf commit 807fa1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ir/item.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ pub struct Item {
397397
///
398398
/// This is a fairly used operation during codegen so this makes bindgen
399399
/// considerably faster in those cases.
400-
canonical_name_cache: LazyCell<String>,
400+
canonical_name: LazyCell<String>,
401401

402402
/// The path to use for whitelisting and other name-based checks, as
403403
/// returned by `path_for_whitelisting`, lazily constructed.
@@ -438,7 +438,7 @@ impl Item {
438438
id: id,
439439
local_id: LazyCell::new(),
440440
next_child_local_id: Cell::new(1),
441-
canonical_name_cache: LazyCell::new(),
441+
canonical_name: LazyCell::new(),
442442
path_for_whitelisting: LazyCell::new(),
443443
parent_id: parent_id,
444444
comment: comment,
@@ -1834,7 +1834,7 @@ impl ItemCanonicalName for Item {
18341834
ctx.in_codegen_phase(),
18351835
"You're not supposed to call this yet"
18361836
);
1837-
self.canonical_name_cache
1837+
self.canonical_name
18381838
.borrow_with(|| {
18391839
let in_namespace = ctx.options().enable_cxx_namespaces ||
18401840
ctx.options().disable_name_namespacing;

0 commit comments

Comments
 (0)