fix fallout from libsyntax enumpocalypse
This commit is contained in:
parent
7eb7c56bd4
commit
1ec3005e45
3 changed files with 3 additions and 3 deletions
|
@ -1003,7 +1003,7 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> {
|
||||||
self.gate_feature("type_ascription", e.span,
|
self.gate_feature("type_ascription", e.span,
|
||||||
"type ascription is experimental");
|
"type ascription is experimental");
|
||||||
}
|
}
|
||||||
ast::ExprRange(_, _, ast::RangeLimits::Closed) => {
|
ast::ExprKind::Range(_, _, ast::RangeLimits::Closed) => {
|
||||||
self.gate_feature("inclusive_range_syntax",
|
self.gate_feature("inclusive_range_syntax",
|
||||||
e.span,
|
e.span,
|
||||||
"inclusive range syntax is experimental");
|
"inclusive range syntax is experimental");
|
||||||
|
|
|
@ -2056,7 +2056,7 @@ impl<'a> Parser<'a> {
|
||||||
start: Option<P<Expr>>,
|
start: Option<P<Expr>>,
|
||||||
end: Option<P<Expr>>,
|
end: Option<P<Expr>>,
|
||||||
limits: RangeLimits)
|
limits: RangeLimits)
|
||||||
-> ast::Expr_ {
|
-> ast::ExprKind {
|
||||||
ExprKind::Range(start, end, limits)
|
ExprKind::Range(start, end, limits)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2163,7 +2163,7 @@ impl<'a> State<'a> {
|
||||||
try!(self.print_expr(&index));
|
try!(self.print_expr(&index));
|
||||||
try!(word(&mut self.s, "]"));
|
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 {
|
if let &Some(ref e) = start {
|
||||||
try!(self.print_expr(&e));
|
try!(self.print_expr(&e));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue