1
Fork 0

Make #[no_ord_impl] an attribute in newtype_index

This commit is contained in:
Nilstrieb 2022-12-18 21:06:44 +01:00
parent 88d5f7f4ce
commit 93429948cf
2 changed files with 5 additions and 9 deletions

View file

@ -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{}"
}
}