Remove ty_no_eq_after
diff --git a/src/expr.rs b/src/expr.rs
index 24daa43..f53c916 100644
--- a/src/expr.rs
+++ b/src/expr.rs
@@ -1029,8 +1029,6 @@
pub mod parsing {
use super::*;
use path;
- #[cfg(feature = "full")]
- use path::parsing::ty_no_eq_after;
use parse::{Parse, ParseStream, Result};
#[cfg(feature = "full")]
@@ -1819,9 +1817,7 @@
#[cfg(feature = "full")]
fn generic_method_argument(input: ParseStream) -> Result<GenericMethodArgument> {
// TODO parse const generics as well
- input
- .parse_synom(ty_no_eq_after)
- .map(GenericMethodArgument::Type)
+ input.parse().map(GenericMethodArgument::Type)
}
#[cfg(feature = "full")]
diff --git a/src/path.rs b/src/path.rs
index fd85c21..6e68000 100644
--- a/src/path.rs
+++ b/src/path.rs
@@ -261,7 +261,7 @@
}
}
- Ok(GenericArgument::Type(input.parse_synom(ty_no_eq_after)?))
+ input.parse().map(GenericArgument::Type)
}
}
@@ -452,12 +452,6 @@
Ok((None, path))
}
}
-
- named!(pub ty_no_eq_after -> Type, do_parse!(
- ty: syn!(Type) >>
- not!(punct!(=)) >>
- (ty)
- ));
}
#[cfg(feature = "printing")]