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:
Nicholas Nethercote 2023-11-21 17:35:46 +11:00
parent 3ef9d4d0ed
commit 7060fc8327
28 changed files with 43 additions and 4 deletions

View file

@ -23,7 +23,7 @@ impl Parse for Newtype {
let mut max = None;
let mut consts = Vec::new();
let mut encodable = false;
let mut ord = true;
let mut ord = false;
let mut gate_rustc_only = quote! {};
let mut gate_rustc_only_cfg = quote! { all() };
@ -38,8 +38,8 @@ impl Parse for Newtype {
encodable = true;
false
}
"no_ord_impl" => {
ord = false;
"orderable" => {
ord = true;
false
}
"max" => {