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.
This commit is contained in:
parent
ed8f503911
commit
4e2afb0052
18 changed files with 244 additions and 309 deletions
|
|
@ -246,7 +246,6 @@ mod svh_visitor {
|
|||
SawExprAssign,
|
||||
SawExprAssignOp(ast::BinOp),
|
||||
SawExprIndex,
|
||||
SawExprSlice,
|
||||
SawExprRange,
|
||||
SawExprPath,
|
||||
SawExprAddrOf(ast::Mutability),
|
||||
|
|
@ -280,7 +279,6 @@ mod svh_visitor {
|
|||
ExprField(_, id) => SawExprField(content(id.node)),
|
||||
ExprTupField(_, id) => SawExprTupField(id.node),
|
||||
ExprIndex(..) => SawExprIndex,
|
||||
ExprSlice(..) => SawExprSlice,
|
||||
ExprRange(..) => SawExprRange,
|
||||
ExprPath(..) => SawExprPath,
|
||||
ExprAddrOf(m, _) => SawExprAddrOf(m),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue