@@ -36,8 +36,8 @@ use serde_derive::{Deserialize, Serialize};
36
36
// will instead cause conflicts. See #94591 for more. (This paragraph and the "Latest feature" line
37
37
// are deliberately not in a doc comment, because they need not be in public docs.)
38
38
//
39
- // Latest feature: Pretty printing of cold attributes changed
40
- pub const FORMAT_VERSION : u32 = 50 ;
39
+ // Latest feature: improve handling of generic args
40
+ pub const FORMAT_VERSION : u32 = 51 ;
41
41
42
42
/// The root of the emitted JSON blob.
43
43
///
@@ -276,8 +276,8 @@ pub struct PolyTrait {
276
276
/// A set of generic arguments provided to a path segment, e.g.
277
277
///
278
278
/// ```text
279
- /// std::option::Option:: <u32>::None
280
- /// ^^^^^
279
+ /// std::option::Option<u32>
280
+ /// ^^^^^
281
281
/// ```
282
282
#[ derive( Clone , Debug , PartialEq , Eq , Hash , Serialize , Deserialize ) ]
283
283
#[ serde( rename_all = "snake_case" ) ]
@@ -330,7 +330,7 @@ pub enum GenericArg {
330
330
Const ( Constant ) ,
331
331
/// A generic argument that's explicitly set to be inferred.
332
332
/// ```text
333
- /// std::vec::Vec::<_>::new()
333
+ /// std::vec::Vec::<_>
334
334
/// ^
335
335
/// ```
336
336
Infer ,
@@ -361,7 +361,7 @@ pub struct AssocItemConstraint {
361
361
/// The name of the associated type/constant.
362
362
pub name : String ,
363
363
/// Arguments provided to the associated type/constant.
364
- pub args : GenericArgs ,
364
+ pub args : Option < Box < GenericArgs > > ,
365
365
/// The kind of bound applied to the associated type/constant.
366
366
pub binding : AssocItemConstraintKind ,
367
367
}
@@ -1117,7 +1117,7 @@ pub enum Type {
1117
1117
/// <core::slice::IterMut<'static, u32> as BetterIterator>::Item<'static>
1118
1118
/// // ^^^^^^^^^
1119
1119
/// ```
1120
- args : Box < GenericArgs > ,
1120
+ args : Option < Box < GenericArgs > > ,
1121
1121
/// The type with which this type is associated.
1122
1122
///
1123
1123
/// ```ignore (incomplete expression)
0 commit comments