fix fallout from libsyntax enumpocalypse

This commit is contained in:
Alex Burka 2016-02-11 12:52:39 -05:00
parent 7eb7c56bd4
commit 1ec3005e45
3 changed files with 3 additions and 3 deletions

View file

@ -1003,7 +1003,7 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> {
self.gate_feature("type_ascription", e.span,
"type ascription is experimental");
}
ast::ExprRange(_, _, ast::RangeLimits::Closed) => {
ast::ExprKind::Range(_, _, ast::RangeLimits::Closed) => {
self.gate_feature("inclusive_range_syntax",
e.span,
"inclusive range syntax is experimental");

View file

@ -2056,7 +2056,7 @@ impl<'a> Parser<'a> {
start: Option<P<Expr>>,
end: Option<P<Expr>>,
limits: RangeLimits)
-> ast::Expr_ {
-> ast::ExprKind {
ExprKind::Range(start, end, limits)
}

View file

@ -2163,7 +2163,7 @@ impl<'a> State<'a> {
try!(self.print_expr(&index));
try!(word(&mut self.s, "]"));
}
ast::ExprKing::Range(ref start, ref end, limits) => {
ast::ExprKind::Range(ref start, ref end, limits) => {
if let &Some(ref e) = start {
try!(self.print_expr(&e));
}