File tree 2 files changed +12
-5
lines changed
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -521,11 +521,17 @@ impl Type {
521
521
return Err ( ParseError :: Continue ) ;
522
522
}
523
523
524
- if args. is_empty ( ) {
525
- error ! ( "Failed to get any template parameter, maybe a specialization? {:?}" , location) ;
526
- return Err ( ParseError :: Continue ) ;
527
- }
528
-
524
+ // NB: `args` may be empty here (if for example the
525
+ // template parameters are constants).
526
+ //
527
+ // We can't reject it here then because inner points
528
+ // to `potential_id` now, so either we remove
529
+ // `inner` and return an error, or carry on.
530
+ //
531
+ // In this case, we just carry on, since it seems
532
+ // easier if than removing every possible reference
533
+ // to `item` from `ctx`, and it doesn't give any
534
+ // problems that we didn't have anyway.
529
535
TypeKind :: TemplateAlias ( inner. unwrap ( ) , args)
530
536
}
531
537
CXCursor_TemplateRef => {
Original file line number Diff line number Diff line change 4
4
#![ allow( non_snake_case) ]
5
5
6
6
7
+ pub type __void_t = :: std:: os:: raw:: c_void ;
7
8
#[ repr( C ) ]
8
9
#[ derive( Debug , Copy , Clone ) ]
9
10
pub struct __iterator_traits < _Iterator > {
You can’t perform that action at this time.
0 commit comments