If the modifiedType and the minimally desugared type of an AttributedType are the same, then we do not need to show both in an AST dump.
Here, we change VisitAttributedType to only visit the modifiedType when it is different from the equivalentType (the minimally desugared type), because the latter is already visited by default.
Can you add a second example where the attribute is not mere sugar, showing that both types get printed?
The example from the AttributedType doc is vector_size, which would work