Remove '.' after nullary tags in patterns
Does what it says on the tin. The next commit will remove support for this syntax.
This commit is contained in:
parent
ca7cfbe3d0
commit
04a2887f87
96 changed files with 1410 additions and 1410 deletions
|
|
@ -45,7 +45,7 @@ fn check_expr(sess: session, e: @expr, &&is_const: bool, v: visit::vt<bool>) {
|
|||
if is_const {
|
||||
alt e.node {
|
||||
expr_unary(box(_), _) | expr_unary(uniq(_), _) |
|
||||
expr_unary(deref., _){
|
||||
expr_unary(deref, _){
|
||||
sess.span_err(e.span,
|
||||
"disallowed operator in constant expression");
|
||||
ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue