File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
crates/compiler/builtins/bitcode/src Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ pub const RocStr = extern struct {
179
179
180
180
pub fn eq (self : RocStr , other : RocStr ) bool {
181
181
// If they are byte-for-byte equal, they're definitely equal!
182
- if (self .bytes == other .bytes and self .length == other .length and self . capacity_or_alloc_ptr == other . capacity_or_alloc_ptr ) {
182
+ if (self .bytes == other .bytes and self .length == other .length ) {
183
183
return true ;
184
184
}
185
185
@@ -2256,8 +2256,7 @@ test "withAsciiUppercased: seamless slice" {
2256
2256
}
2257
2257
2258
2258
pub fn strCaselessAsciiEquals (self : RocStr , other : RocStr ) callconv (.C ) bool {
2259
- // If they are byte-for-byte equal, they're definitely equal!
2260
- if (self .bytes == other .bytes and self .length == other .length and self .capacity_or_alloc_ptr == other .capacity_or_alloc_ptr ) {
2259
+ if (self .bytes == other .bytes and self .length == other .length ) {
2261
2260
return true ;
2262
2261
}
2263
2262
You can’t perform that action at this time.
0 commit comments