Skip to content

Commit 21fb4ac

Browse files
committed
Remove two useless rules from extension_trait!.
They never run because they are subsumed by the two rules immediately above.
1 parent b90c2cd commit 21fb4ac

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/utils.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -309,14 +309,6 @@ macro_rules! extension_trait {
309309
extension_trait!(@ext ($($head)* -> $f) $($tail)*);
310310
};
311311

312-
// Parse the return type in an extension method.
313-
(@doc ($($head:tt)*) -> impl Future<Output = $out:ty> + $lt:lifetime [$f:ty] $($tail:tt)*) => {
314-
extension_trait!(@doc ($($head)* -> borrowed::ImplFuture<$lt, $out>) $($tail)*);
315-
};
316-
(@ext ($($head:tt)*) -> impl Future<Output = $out:ty> + $lt:lifetime [$f:ty] $($tail:tt)*) => {
317-
extension_trait!(@ext ($($head)* -> $f) $($tail)*);
318-
};
319-
320312
// Parse a token.
321313
(@doc ($($head:tt)*) $token:tt $($tail:tt)*) => {
322314
extension_trait!(@doc ($($head)* $token) $($tail)*);

0 commit comments

Comments
 (0)