about summary refs log tree commit diff
path: root/compiler/rustc_span
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-12-18 21:06:44 +0100
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-12-18 21:06:44 +0100
commit93429948cf0e6fe8aac3802a8fbc73a121463994 (patch)
tree6baa821628609aa33ee3baa5cc92f76f66672790 /compiler/rustc_span
parent88d5f7f4ce72e3489193fb41e687c53809b5c6bd (diff)
downloadrust-93429948cf0e6fe8aac3802a8fbc73a121463994.tar.gz
rust-93429948cf0e6fe8aac3802a8fbc73a121463994.zip
Make `#[no_ord_impl]` an attribute in `newtype_index`
Diffstat (limited to 'compiler/rustc_span')
-rw-r--r--compiler/rustc_span/src/hygiene.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_span/src/hygiene.rs b/compiler/rustc_span/src/hygiene.rs
index 4fb56dac856..2de559c5a70 100644
--- a/compiler/rustc_span/src/hygiene.rs
+++ b/compiler/rustc_span/src/hygiene.rs
@@ -83,8 +83,8 @@ impl fmt::Debug for ExpnId {
 rustc_index::newtype_index! {
     /// A unique ID associated with a macro invocation and expansion.
     #[custom_encodable]
+    #[no_ord_impl]
     pub struct LocalExpnId {
-        ORD_IMPL = custom
         DEBUG_FORMAT = "expn{}"
     }
 }