1
Fork 0

Remove some old code from libsyntax

This commit is contained in:
Vadim Petrochenkov 2016-04-22 23:43:14 +03:00
parent a97f60ee86
commit 9108fb7bae
9 changed files with 21 additions and 67 deletions

View file

@ -1160,7 +1160,7 @@ impl<'a> Parser<'a> {
let other_bounds = if self.eat(&token::BinOp(token::Plus)) {
self.parse_ty_param_bounds(BoundParsingMode::Bare)?
} else {
P::empty()
P::new()
};
let all_bounds =
Some(TraitTyParamBound(poly_trait_ref, TraitBoundModifier::None)).into_iter()
@ -4239,7 +4239,7 @@ impl<'a> Parser<'a> {
-> PResult<'a, TyParamBounds>
{
if !self.eat(&token::Colon) {
Ok(P::empty())
Ok(P::new())
} else {
self.parse_ty_param_bounds(mode)
}