Skip to content

Commit 3483e77

Browse files
committed
Remove spurious comments.
1 parent b012179 commit 3483e77

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tests/mir-opt/pre-codegen/chained_comparison.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ pub struct Blueprint {
1111
pub storage: u32,
1212
}
1313

14-
// Equivalent of #[derive(PartialEq)]
1514
pub fn naive(a: &Blueprint, b: &Blueprint) -> bool {
1615
(a.fuel_tank_size == b.fuel_tank_size)
1716
&& (a.payload == b.payload)
@@ -20,7 +19,6 @@ pub fn naive(a: &Blueprint, b: &Blueprint) -> bool {
2019
&& (a.storage == b.storage)
2120
}
2221

23-
// Optimizes good but changes semantics
2422
pub fn bitand(a: &Blueprint, b: &Blueprint) -> bool {
2523
(a.fuel_tank_size == b.fuel_tank_size)
2624
& (a.payload == b.payload)
@@ -29,7 +27,6 @@ pub fn bitand(a: &Blueprint, b: &Blueprint) -> bool {
2927
& (a.storage == b.storage)
3028
}
3129

32-
// Optimizes good and have same semantics as PartialEq
3330
pub fn returning(a: &Blueprint, b: &Blueprint) -> bool {
3431
if a.fuel_tank_size != b.fuel_tank_size {
3532
return false;

0 commit comments

Comments
 (0)