about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/floating_point_logbase.fixed
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-03-01 22:22:06 +0000
committerbors <bors@rust-lang.org>2025-03-01 22:22:06 +0000
commit351686bcfd18dd0f652aba69a806bfa68c57234d (patch)
tree7d20ba474a6283e76572bb8c59b5e61347120420 /src/tools/clippy/tests/ui/floating_point_logbase.fixed
parent8c392966a013fd8a09e6b78b3c8d6e442bc278e1 (diff)
parent7bfea666528281d627fc01b3858e3742fafa0d7d (diff)
Auto merge of #137752 - flip1995:clippy-subtree-update, r=Manishearth
Clippy subtree update

? `@Manishearth`

Cargo.lock change because of Clippy version bump and rustc_tool_utils new release.

Fixes #137640

Would be nice, if we could this merged before nightly is being build, so that this ICE is fixed tomorrow.
Diffstat (limited to 'src/tools/clippy/tests/ui/floating_point_logbase.fixed')
-rw-r--r--src/tools/clippy/tests/ui/floating_point_logbase.fixed5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/floating_point_logbase.fixed b/src/tools/clippy/tests/ui/floating_point_logbase.fixed
index 451673d109c..d03882c774c 100644
--- a/src/tools/clippy/tests/ui/floating_point_logbase.fixed
+++ b/src/tools/clippy/tests/ui/floating_point_logbase.fixed
@@ -5,10 +5,15 @@ fn main() {
     let x = 3f32;
     let y = 5f32;
     let _ = x.log(y);
+    //~^ suboptimal_flops
     let _ = (x as f32).log(y);
+    //~^ suboptimal_flops
     let _ = x.log(y);
+    //~^ suboptimal_flops
     let _ = x.log(y);
+    //~^ suboptimal_flops
     let _ = x.log(y);
+    //~^ suboptimal_flops
     // Cases where the lint shouldn't be applied
     let _ = x.ln() / y.powf(3.2);
     let _ = x.powf(3.2) / y.powf(3.2);