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 @@ -566,11 +566,17 @@ impl Type {
566
566
return Err ( ParseError :: Continue ) ;
567
567
}
568
568
569
- if args. is_empty ( ) {
570
- error ! ( "Failed to get any template parameter, maybe a specialization? {:?}" , location) ;
571
- return Err ( ParseError :: Continue ) ;
572
- }
573
-
569
+ // NB: `args` may be empty here (if for example the
570
+ // template parameters are constants).
571
+ //
572
+ // We can't reject it here then because inner points
573
+ // to `potential_id` now, so either we remove
574
+ // `inner` and return an error, or carry on.
575
+ //
576
+ // In this case, we just carry on, since it seems
577
+ // easier if than removing every possible reference
578
+ // to `item` from `ctx`, and it doesn't give any
579
+ // problems that we didn't have anyway.
574
580
TypeKind :: TemplateAlias ( inner. unwrap ( ) , args)
575
581
}
576
582
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