about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-10-05 17:19:50 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-10-05 21:03:40 -0700
commit05999290e23ad5f57bdfbfd56bde694a627c342e (patch)
tree4c46f6dd9fd367e445413743bd0f7bc7722c42b1 /src/libsyntax/parse/parser.rs
parent688a920045627a3afa8ef46ee9d62b253ccfa243 (diff)
downloadrust-05999290e23ad5f57bdfbfd56bde694a627c342e.tar.gz
rust-05999290e23ad5f57bdfbfd56bde694a627c342e.zip
Finally removing all uses of by-mut-ref
The code for the mode itself is still there.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index bc0beec5b36..6bee9190a83 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -570,7 +570,8 @@ impl parser {
 
     fn parse_arg_mode() -> mode {
         if self.eat(token::BINOP(token::AND)) {
-            self.warn(~"Obsolete syntax has no effect");
+            self.span_fatal(copy self.last_span,
+                            ~"Obsolete syntax has no effect");
             expl(by_mutbl_ref)
         } else if self.eat(token::BINOP(token::MINUS)) {
             expl(by_move)