Skip to content

Commit 8756d07

Browse files
Derive Ord and PartialOrd for TraitRef
1 parent 311fa1f commit 8756d07

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/ty/sty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ impl<'tcx> List<ty::Binder<'tcx, ExistentialPredicate<'tcx>>> {
890890
///
891891
/// Trait references also appear in object types like `Foo<U>`, but in
892892
/// that case the `Self` parameter is absent from the substitutions.
893-
#[derive(Copy, Clone, PartialEq, Eq, Hash, TyEncodable, TyDecodable)]
893+
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, TyEncodable, TyDecodable)]
894894
#[derive(HashStable, TypeFoldable)]
895895
pub struct TraitRef<'tcx> {
896896
pub def_id: DefId,

0 commit comments

Comments
 (0)