Replace no_ord_impl
with orderable
.
Similar to the previous commit, this replaces `newtype_index`'s opt-out `no_ord_impl` attribute with the opt-in `orderable` attribute.
This commit is contained in:
parent
3ef9d4d0ed
commit
7060fc8327
28 changed files with 43 additions and 4 deletions
|
@ -43,6 +43,7 @@ rustc_index::newtype_index! {
|
|||
/// `f` is `FieldIdx(1)` in `VariantIdx(0)`.
|
||||
#[derive(HashStable_Generic)]
|
||||
#[encodable]
|
||||
#[orderable]
|
||||
pub struct FieldIdx {}
|
||||
}
|
||||
|
||||
|
@ -59,6 +60,7 @@ rustc_index::newtype_index! {
|
|||
/// with variant index zero, aka [`FIRST_VARIANT`].
|
||||
#[derive(HashStable_Generic)]
|
||||
#[encodable]
|
||||
#[orderable]
|
||||
pub struct VariantIdx {
|
||||
/// Equivalent to `VariantIdx(0)`.
|
||||
const FIRST_VARIANT = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue