File tree 2 files changed +5
-9
lines changed
2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 7
7
syn:: custom_keyword!( DEBUG_FORMAT ) ;
8
8
syn:: custom_keyword!( MAX ) ;
9
9
syn:: custom_keyword!( custom) ;
10
- syn:: custom_keyword!( ORD_IMPL ) ;
11
10
}
12
11
13
12
#[ derive( Debug ) ]
@@ -56,6 +55,10 @@ impl Parse for Newtype {
56
55
encodable = false ;
57
56
false
58
57
}
58
+ "no_ord_impl" => {
59
+ ord = false ;
60
+ false
61
+ }
59
62
_ => true ,
60
63
} ,
61
64
_ => true ,
@@ -91,13 +94,6 @@ impl Parse for Newtype {
91
94
}
92
95
continue ;
93
96
}
94
- if body. lookahead1 ( ) . peek ( kw:: ORD_IMPL ) {
95
- body. parse :: < kw:: ORD_IMPL > ( ) ?;
96
- body. parse :: < Token ! [ =] > ( ) ?;
97
- body. parse :: < kw:: custom > ( ) ?;
98
- ord = false ;
99
- continue ;
100
- }
101
97
102
98
// We've parsed everything that the user provided, so we're done
103
99
if body. is_empty ( ) {
Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ impl fmt::Debug for ExpnId {
83
83
rustc_index:: newtype_index! {
84
84
/// A unique ID associated with a macro invocation and expansion.
85
85
#[ custom_encodable]
86
+ #[ no_ord_impl]
86
87
pub struct LocalExpnId {
87
- ORD_IMPL = custom
88
88
DEBUG_FORMAT = "expn{}"
89
89
}
90
90
}
You can’t perform that action at this time.
0 commit comments