about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-05-16 12:21:29 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-06-01 21:41:58 +0000
commit3483e77263551544bb3ba0a20a06854345824cc6 (patch)
tree8a0e0a2ea5f482e83eea0e200f308e0eca216c8b
parentb0121799b314c0069c7b293688a2edf4f1be6c27 (diff)
downloadrust-3483e77263551544bb3ba0a20a06854345824cc6.tar.gz
rust-3483e77263551544bb3ba0a20a06854345824cc6.zip
Remove spurious comments.
-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;