about summary refs log tree commit diff
path: root/tests/ui/binding/expr-match-generic.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-02-07 17:56:45 +0000
committerbors <bors@rust-lang.org>2025-02-07 17:56:45 +0000
commita9e7b30487235621751cc628f170c0f15fb215c4 (patch)
treedd52a558529c0170e5d6dc6ce1ffe28afeb58694 /tests/ui/binding/expr-match-generic.rs
parent64e06c0f5578829373743884b708d494136c3e8f (diff)
parentb4c4913abbbd0d050d6fb4abd323c1065fe6dc41 (diff)
downloadrust-a9e7b30487235621751cc628f170c0f15fb215c4.tar.gz
rust-a9e7b30487235621751cc628f170c0f15fb215c4.zip
Auto merge of #136697 - matthiaskrgr:rollup-eww4vl9, r=matthiaskrgr
Rollup of 7 pull requests

Successful merges:

 - #134367 (Stabilize `feature(trait_upcasting)`)
 - #135940 (Update toolstate maintainers)
 - #135945 (Remove some unnecessary parens in `assert!` conditions)
 - #136577 (Pattern Migration 2024: try to suggest eliding redundant binding modifiers)
 - #136598 (Fix suggestion for `dependency_on_unit_never_type_fallback` involving closures + format args expansions)
 - #136653 (Remove dead code from rustc_codegen_llvm and the LLVM wrapper)
 - #136664 (replace one `.map_or(true, ...)` with `.is_none_or(...)`)

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'tests/ui/binding/expr-match-generic.rs')
-rw-r--r--tests/ui/binding/expr-match-generic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/binding/expr-match-generic.rs b/tests/ui/binding/expr-match-generic.rs
index 975eec42fd0..dcc069b9fb3 100644
--- a/tests/ui/binding/expr-match-generic.rs
+++ b/tests/ui/binding/expr-match-generic.rs
@@ -5,7 +5,7 @@ type compare<T> = extern "Rust" fn(T, T) -> bool;
 
 fn test_generic<T:Clone>(expected: T, eq: compare<T>) {
   let actual: T = match true { true => { expected.clone() }, _ => panic!("wat") };
-    assert!((eq(expected, actual)));
+    assert!(eq(expected, actual));
 }
 
 fn test_bool() {