about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tests/mir-opt/pre-codegen/chained_comparison.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/mir-opt/pre-codegen/chained_comparison.rs b/tests/mir-opt/pre-codegen/chained_comparison.rs
index 5293249c4e0..f7879140f81 100644
--- a/tests/mir-opt/pre-codegen/chained_comparison.rs
+++ b/tests/mir-opt/pre-codegen/chained_comparison.rs
@@ -11,7 +11,6 @@ pub struct Blueprint {
     pub storage: u32,
 }
 
-// Equivalent of #[derive(PartialEq)]
 pub fn naive(a: &Blueprint, b: &Blueprint) -> bool {
     (a.fuel_tank_size == b.fuel_tank_size)
         && (a.payload == b.payload)
@@ -20,7 +19,6 @@ pub fn naive(a: &Blueprint, b: &Blueprint) -> bool {
         && (a.storage == b.storage)
 }
 
-// Optimizes good but changes semantics
 pub fn bitand(a: &Blueprint, b: &Blueprint) -> bool {
     (a.fuel_tank_size == b.fuel_tank_size)
         & (a.payload == b.payload)
@@ -29,7 +27,6 @@ pub fn bitand(a: &Blueprint, b: &Blueprint) -> bool {
         & (a.storage == b.storage)
 }
 
-// Optimizes good and have same semantics as PartialEq
 pub fn returning(a: &Blueprint, b: &Blueprint) -> bool {
     if a.fuel_tank_size != b.fuel_tank_size {
         return false;