File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -278,10 +278,16 @@ impl Item {
278
278
TypeKind :: Named ( ref name, _) => {
279
279
return name. to_owned ( ) ;
280
280
}
281
- // We really codegen and use the inner type, so use an empty
282
- // base name so codegen doesn't get confused.
281
+ // We call codegen on the inner type, but we do not want
282
+ // this alias's name to appear in the canonical name just
283
+ // because it is in the inner type's parent chain, so we use
284
+ // an empty base name.
283
285
//
284
- // We should never have this in another kind of type, so...
286
+ // Note that this would be incorrect if this type could be
287
+ // referenced from, let's say, a member variable, but in
288
+ // that case the referenced type is the inner alias, so
289
+ // we're good there. If we wouldn't, a more complex solution
290
+ // would be needed.
285
291
TypeKind :: TemplateAlias ( ..) => {
286
292
Some ( "" )
287
293
}
You can’t perform that action at this time.
0 commit comments