File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ use super::item::Item;
6
6
use super :: ty:: { Type , TypeKind } ;
7
7
use crate :: clang;
8
8
use crate :: ir:: annotations:: Annotations ;
9
- use crate :: ir:: item:: ItemCanonicalPath ;
10
9
use crate :: parse:: { ClangItemParser , ParseError } ;
11
10
use crate :: regex_set:: RegexSet ;
12
11
@@ -153,7 +152,7 @@ impl Enum {
153
152
enums : & RegexSet ,
154
153
item : & Item ,
155
154
) -> bool {
156
- let path = item. canonical_path ( ctx) ;
155
+ let path = item. path_for_whitelisting ( ctx) ;
157
156
let enum_ty = item. expect_type ( ) ;
158
157
159
158
if enums. matches ( & path[ 1 ..] . join ( "::" ) ) {
Original file line number Diff line number Diff line change 28
28
//! ```
29
29
30
30
use super :: context:: { BindgenContext , ItemId , TypeId } ;
31
- use super :: item:: { IsOpaque , Item , ItemAncestors , ItemCanonicalPath } ;
31
+ use super :: item:: { IsOpaque , Item , ItemAncestors } ;
32
32
use super :: traversal:: { EdgeKind , Trace , Tracer } ;
33
33
use crate :: clang;
34
34
use crate :: parse:: ClangItemParser ;
@@ -306,12 +306,13 @@ impl IsOpaque for TemplateInstantiation {
306
306
// correct fix is to make `canonical_{name,path}` include template
307
307
// arguments properly.
308
308
309
- let mut path = item. canonical_path ( ctx) ;
309
+ let mut path = item. path_for_whitelisting ( ctx) . clone ( ) ;
310
310
let args: Vec < _ > = self
311
311
. template_arguments ( )
312
312
. iter ( )
313
313
. map ( |arg| {
314
- let arg_path = arg. canonical_path ( ctx) ;
314
+ let arg_path =
315
+ ctx. resolve_item ( * arg) . path_for_whitelisting ( ctx) ;
315
316
arg_path[ 1 ..] . join ( "::" )
316
317
} )
317
318
. collect ( ) ;
You can’t perform that action at this time.
0 commit comments