@@ -29,7 +29,7 @@ use serde::{Deserialize, Serialize};
29
29
/// This integer is incremented with every breaking change to the API,
30
30
/// and is returned along with the JSON blob as [`Crate::format_version`].
31
31
/// Consuming code should assert that this value matches the format version(s) that it supports.
32
- pub const FORMAT_VERSION : u32 = 45 ;
32
+ pub const FORMAT_VERSION : u32 = 46 ;
33
33
34
34
/// The root of the emitted JSON blob.
35
35
///
@@ -179,19 +179,13 @@ pub struct Item {
179
179
///
180
180
/// Does not include `#[deprecated]` attributes: see the [`Self::deprecation`] field instead.
181
181
///
182
- /// Some attributes appear in pretty-printed Rust form, regardless of their formatting
182
+ /// Attributes appear in pretty-printed Rust form, regardless of their formatting
183
183
/// in the original source code. For example:
184
184
/// - `#[non_exhaustive]` and `#[must_use]` are represented as themselves.
185
185
/// - `#[no_mangle]` and `#[export_name]` are also represented as themselves.
186
186
/// - `#[repr(C)]` and other reprs also appear as themselves,
187
187
/// though potentially with a different order: e.g. `repr(i8, C)` may become `repr(C, i8)`.
188
188
/// Multiple repr attributes on the same item may be combined into an equivalent single attr.
189
- ///
190
- /// Other attributes may appear debug-printed. For example:
191
- /// - `#[inline]` becomes something similar to `#[attr="Inline(Hint)"]`.
192
- ///
193
- /// As an internal implementation detail subject to change, this debug-printing format
194
- /// is currently equivalent to the HIR pretty-printing of parsed attributes.
195
189
pub attrs : Vec < String > ,
196
190
/// Information about the item’s deprecation, if present.
197
191
pub deprecation : Option < Deprecation > ,
@@ -393,7 +387,7 @@ pub enum AssocItemConstraintKind {
393
387
/// Rustdoc makes no guarantees about the inner value of Id's. Applications
394
388
/// should treat them as opaque keys to lookup items, and avoid attempting
395
389
/// to parse them, or otherwise depend on any implementation details.
396
- #[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , Serialize , Deserialize ) ]
390
+ #[ derive( Clone , Copy , Debug , PartialEq , Eq , PartialOrd , Ord , Hash , Serialize , Deserialize ) ]
397
391
// FIXME(aDotInTheVoid): Consider making this non-public in rustdoc-types.
398
392
pub struct Id ( pub u32 ) ;
399
393
0 commit comments