Skip to content

Commit 1ec3005

Browse files
committed
fix fallout from libsyntax enumpocalypse
1 parent 7eb7c56 commit 1ec3005

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/libsyntax/feature_gate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> {
10031003
self.gate_feature("type_ascription", e.span,
10041004
"type ascription is experimental");
10051005
}
1006-
ast::ExprRange(_, _, ast::RangeLimits::Closed) => {
1006+
ast::ExprKind::Range(_, _, ast::RangeLimits::Closed) => {
10071007
self.gate_feature("inclusive_range_syntax",
10081008
e.span,
10091009
"inclusive range syntax is experimental");

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,7 @@ impl<'a> Parser<'a> {
20562056
start: Option<P<Expr>>,
20572057
end: Option<P<Expr>>,
20582058
limits: RangeLimits)
2059-
-> ast::Expr_ {
2059+
-> ast::ExprKind {
20602060
ExprKind::Range(start, end, limits)
20612061
}
20622062

src/libsyntax/print/pprust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2163,7 +2163,7 @@ impl<'a> State<'a> {
21632163
try!(self.print_expr(&index));
21642164
try!(word(&mut self.s, "]"));
21652165
}
2166-
ast::ExprKing::Range(ref start, ref end, limits) => {
2166+
ast::ExprKind::Range(ref start, ref end, limits) => {
21672167
if let &Some(ref e) = start {
21682168
try!(self.print_expr(&e));
21692169
}

0 commit comments

Comments
 (0)