From 3483e77263551544bb3ba0a20a06854345824cc6 Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Tue, 16 May 2023 12:21:29 +0000 Subject: [PATCH] Remove spurious comments. --- tests/mir-opt/pre-codegen/chained_comparison.rs | 3 --- 1 file changed, 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;