@@ -29,7 +29,7 @@ use serde::{Deserialize, Serialize};
2929/// This integer is incremented with every breaking change to the API,
3030/// and is returned along with the JSON blob as [`Crate::format_version`].
3131/// 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 ;
3333
3434/// The root of the emitted JSON blob.
3535///
@@ -179,19 +179,13 @@ pub struct Item {
179179 ///
180180 /// Does not include `#[deprecated]` attributes: see the [`Self::deprecation`] field instead.
181181 ///
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
183183 /// in the original source code. For example:
184184 /// - `#[non_exhaustive]` and `#[must_use]` are represented as themselves.
185185 /// - `#[no_mangle]` and `#[export_name]` are also represented as themselves.
186186 /// - `#[repr(C)]` and other reprs also appear as themselves,
187187 /// though potentially with a different order: e.g. `repr(i8, C)` may become `repr(C, i8)`.
188188 /// 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.
195189 pub attrs : Vec < String > ,
196190 /// Information about the item’s deprecation, if present.
197191 pub deprecation : Option < Deprecation > ,
@@ -393,7 +387,7 @@ pub enum AssocItemConstraintKind {
393387/// Rustdoc makes no guarantees about the inner value of Id's. Applications
394388/// should treat them as opaque keys to lookup items, and avoid attempting
395389/// 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 ) ]
397391// FIXME(aDotInTheVoid): Consider making this non-public in rustdoc-types.
398392pub struct Id ( pub u32 ) ;
399393
0 commit comments