Make #[no_ord_impl]
an attribute in newtype_index
This commit is contained in:
parent
88d5f7f4ce
commit
93429948cf
2 changed files with 5 additions and 9 deletions
|
@ -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{}"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue