File tree Expand file tree Collapse file tree 3 files changed +2
-13
lines changed
crates/formality-core/src Expand file tree Collapse file tree 3 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -58,17 +58,6 @@ macro_rules! seq {
58
58
59
59
}
60
60
61
- pub trait VecExt < T > : Sized {
62
- fn with_pushed ( self , other : T ) -> Self ;
63
- }
64
-
65
- impl < T : Ord + Clone > VecExt < T > for Vec < T > {
66
- fn with_pushed ( mut self , other : T ) -> Self {
67
- self . push ( other) ;
68
- self
69
- }
70
- }
71
-
72
61
pub trait SetExt < T > : Sized {
73
62
fn split_first ( self ) -> Option < ( T , Set < T > ) > ;
74
63
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ impl StackEntry {
97
97
let scope: * const ( ) = erase_type ( scope) ;
98
98
let start_text: * const str = start_text;
99
99
let type_id = TypeId :: of :: < T > ( ) ;
100
- scope == self . scope && start_text == self . start_text && self . type_id == type_id
100
+ scope == self . scope && std :: ptr :: eq ( start_text, self . start_text ) && self . type_id == type_id
101
101
}
102
102
103
103
/// True if a call to parse a value of type `T` with the given scope scope/text
@@ -152,7 +152,7 @@ impl StackEntry {
152
152
let Some ( current_state) = & self . current_state else {
153
153
panic ! ( "observed a stack frame with no current state (forgot to call `recuse`?" ) ;
154
154
} ;
155
- if start_text != current_state. current_text {
155
+ if !std :: ptr :: eq ( start_text, current_state. current_text ) {
156
156
return None ;
157
157
}
158
158
File renamed without changes.
You can’t perform that action at this time.
0 commit comments