Skip to content

Commit f21c96f

Browse files
authored
Unrolled build for #141898
Rollup merge of #141898 - LukeMathWalker:patch-1, r=aDotInTheVoid [rustdoc-json] Implement PartialOrd and Ord for rustdoc_types::Id This allows consumers to create collections that required an ordering relationship for their keys—e.g. a `BTreeMap`.
2 parents c68032f + 6be3c3c commit f21c96f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustdoc-json-types/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ pub enum AssocItemConstraintKind {
388388
/// Rustdoc makes no guarantees about the inner value of Id's. Applications
389389
/// should treat them as opaque keys to lookup items, and avoid attempting
390390
/// to parse them, or otherwise depend on any implementation details.
391-
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
391+
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)]
392392
// FIXME(aDotInTheVoid): Consider making this non-public in rustdoc-types.
393393
pub struct Id(pub u32);
394394

0 commit comments

Comments
 (0)