diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-11-21 17:35:46 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-11-22 18:38:17 +1100 |
| commit | 7060fc8327f457882823fcc1737a964407eed0d6 (patch) | |
| tree | 5cced9e6770b5b1f4ade3201afa60fe31ece72c8 /compiler/rustc_index_macros/src | |
| parent | 3ef9d4d0ed608b0493d66ffe8af2755529ce474c (diff) | |
| download | rust-7060fc8327f457882823fcc1737a964407eed0d6.tar.gz rust-7060fc8327f457882823fcc1737a964407eed0d6.zip | |
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.
Diffstat (limited to 'compiler/rustc_index_macros/src')
| -rw-r--r-- | compiler/rustc_index_macros/src/newtype.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_index_macros/src/newtype.rs b/compiler/rustc_index_macros/src/newtype.rs index 62de5c7c6c1..df1318c835e 100644 --- a/compiler/rustc_index_macros/src/newtype.rs +++ b/compiler/rustc_index_macros/src/newtype.rs @@ -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" => { |
