File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments