diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2014-12-19 11:47:48 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2014-12-30 13:06:25 +1300 |
| commit | 4e2afb0052618ca3d758fffd0cf50559be774391 (patch) | |
| tree | 1d15ea3b8b2c53b1e8f1599578325af3840edc04 /src/libsyntax/ast.rs | |
| parent | ed8f5039115308ca9d5591126e4d8a77864d4730 (diff) | |
| download | rust-4e2afb0052618ca3d758fffd0cf50559be774391.tar.gz rust-4e2afb0052618ca3d758fffd0cf50559be774391.zip | |
Remove ExprSlice by hacking the compiler
[breaking-change] The `mut` in slices is now redundant. Mutability is 'inferred' from position. This means that if mutability is only obvious from the type, you will need to use explicit calls to the slicing methods.
Diffstat (limited to 'src/libsyntax/ast.rs')
| -rw-r--r-- | src/libsyntax/ast.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index e53e2cea1cc..debcbcd2154 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -723,7 +723,6 @@ pub enum Expr_ { ExprField(P<Expr>, SpannedIdent), ExprTupField(P<Expr>, Spanned<uint>), ExprIndex(P<Expr>, P<Expr>), - ExprSlice(P<Expr>, Option<P<Expr>>, Option<P<Expr>>, Mutability), ExprRange(Option<P<Expr>>, Option<P<Expr>>), /// Variable reference, possibly containing `::` and/or |
