File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -778,12 +778,14 @@ impl Type {
778
778
// Yep, the spelling of this containing type-parameter is extremely
779
779
// nasty... But can happen in <type_traits>. Unfortunately I couldn't
780
780
// reduce it enough :(
781
- !self . spelling ( ) . contains ( "type-parameter" ) &&
782
- self . template_args ( )
783
- . map_or ( false , |mut args| {
784
- args. len ( ) > 0 &&
785
- !args. any ( |t| t. spelling ( ) . contains ( "type-parameter" ) )
786
- } )
781
+ self . template_args ( ) . map_or ( false , |args| {
782
+ args. len ( ) > 0
783
+ } ) && match self . declaration ( ) . kind ( ) {
784
+ CXCursor_ClassTemplatePartialSpecialization |
785
+ CXCursor_TypeAliasTemplateDecl |
786
+ CXCursor_TemplateTemplateParameter => false ,
787
+ _ => true ,
788
+ }
787
789
}
788
790
}
789
791
Original file line number Diff line number Diff line change @@ -602,7 +602,8 @@ impl Type {
602
602
// Same here, with template specialisations we can safely
603
603
// assume this is a Comp(..)
604
604
} else if ty. is_fully_specialized_template ( ) {
605
- debug ! ( "Template specialization: {:?}" , ty) ;
605
+ debug ! ( "Template specialization: {:?}, {:?} {:?}" ,
606
+ ty, location, canonical_ty) ;
606
607
let complex =
607
608
CompInfo :: from_ty ( potential_id, ty, location, ctx)
608
609
. expect ( "C'mon" ) ;
You can’t perform that action at this time.
0 commit comments