From 05999290e23ad5f57bdfbfd56bde694a627c342e Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Fri, 5 Oct 2012 17:19:50 -0700 Subject: Finally removing all uses of by-mut-ref The code for the mode itself is still there. --- src/libsyntax/parse/parser.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libsyntax/parse') 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) -- cgit 1.4.1-3-g733a5