about summary refs log tree commit diff
path: root/src/liballoc/tests
diff options
context:
space:
mode:
authorIlija Tovilo <ilija.tovilo@me.com>2019-07-31 21:00:35 +0200
committerIlija Tovilo <ilija.tovilo@me.com>2019-08-08 22:39:15 +0200
commit3a6a29b4ecfdb7f641ca699fcd66a09b4baaae6a (patch)
tree9d577f11fb6f00c835bf70b13d8a90e7934719e1 /src/liballoc/tests
parentd4abb08be6c3a06a14e285396f5e3ef367584f77 (diff)
downloadrust-3a6a29b4ecfdb7f641ca699fcd66a09b4baaae6a.tar.gz
rust-3a6a29b4ecfdb7f641ca699fcd66a09b4baaae6a.zip
Use associated_type_bounds where applicable - closes #61738
Diffstat (limited to 'src/liballoc/tests')
-rw-r--r--src/liballoc/tests/str.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/liballoc/tests/str.rs b/src/liballoc/tests/str.rs
index c5198ca39fe..4332b2e90fd 100644
--- a/src/liballoc/tests/str.rs
+++ b/src/liballoc/tests/str.rs
@@ -1638,10 +1638,12 @@ mod pattern {
         }
     }
 
-    fn cmp_search_to_vec<'a, P: Pattern<'a>>(rev: bool, pat: P, haystack: &'a str,
-                                             right: Vec<SearchStep>)
-    where P::Searcher: ReverseSearcher<'a>
-    {
+    fn cmp_search_to_vec<'a>(
+        rev: bool,
+        pat: impl Pattern<'a, Searcher: ReverseSearcher<'a>>,
+        haystack: &'a str,
+        right: Vec<SearchStep>
+    ) {
         let mut searcher = pat.into_searcher(haystack);
         let mut v = vec![];
         loop {