Skip to content

Commit 0dd9b31

Browse files
committed
Remove Ord from id types
1 parent dd5ff49 commit 0dd9b31

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

chalk-ir/src/lib.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -359,55 +359,55 @@ impl UniverseMap {
359359
}
360360

361361
/// The id for an Abstract Data Type (i.e. structs, unions and enums).
362-
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
362+
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
363363
pub struct AdtId<I: Interner>(pub I::InternedAdtId);
364364

365365
/// The id of a trait definition; could be used to load the trait datum by
366366
/// invoking the [`trait_datum`] method.
367367
///
368368
/// [`trait_datum`]: ../chalk_solve/trait.RustIrDatabase.html#tymethod.trait_datum
369-
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
369+
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
370370
pub struct TraitId<I: Interner>(pub I::DefId);
371371

372372
/// The id for an impl.
373-
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
373+
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
374374
pub struct ImplId<I: Interner>(pub I::DefId);
375375

376376
/// Id for a specific clause.
377-
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
377+
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
378378
pub struct ClauseId<I: Interner>(pub I::DefId);
379379

380380
/// The id for the associated type member of a trait. The details of the type
381381
/// can be found by invoking the [`associated_ty_data`] method.
382382
///
383383
/// [`associated_ty_data`]: ../chalk_solve/trait.RustIrDatabase.html#tymethod.associated_ty_data
384-
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
384+
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
385385
pub struct AssocTypeId<I: Interner>(pub I::DefId);
386386

387387
/// Id for an opaque type.
388-
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
388+
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
389389
pub struct OpaqueTyId<I: Interner>(pub I::DefId);
390390

391391
/// Function definition id.
392-
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
392+
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
393393
pub struct FnDefId<I: Interner>(pub I::DefId);
394394

395395
/// Id for Rust closures.
396-
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
396+
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
397397
pub struct ClosureId<I: Interner>(pub I::DefId);
398398

399399
/// Id for Rust generators.
400-
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
400+
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
401401
pub struct GeneratorId<I: Interner>(pub I::DefId);
402402

403403
/// Id for foreign types.
404-
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
404+
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
405405
pub struct ForeignDefId<I: Interner>(pub I::DefId);
406406

407407
impl_debugs!(ImplId, ClauseId);
408408

409409
/// A Rust type. The actual type data is stored in `TyKind`.
410-
#[derive(Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord, HasInterner)]
410+
#[derive(Copy, Clone, PartialEq, Eq, Hash, HasInterner)]
411411
pub struct Ty<I: Interner> {
412412
interned: I::InternedType,
413413
}

0 commit comments

Comments
 (0)