From 451e8c1c6178750a4c1789f40749562164a980b7 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 21 Mar 2014 18:05:05 -0700 Subject: Convert most code to new inner attribute syntax. Closes #2569 --- src/libsyntax/parse/parser.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/libsyntax/parse/parser.rs') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 0ae43db8315..aee843bd857 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[macro_escape]; +#![macro_escape] use abi; use abi::AbiSet; @@ -811,6 +811,9 @@ impl<'a> Parser<'a> { pub fn warn(&mut self, m: &str) { self.sess.span_diagnostic.span_warn(self.span, m) } + pub fn span_warn(&mut self, sp: Span, m: &str) { + self.sess.span_diagnostic.span_warn(sp, m) + } pub fn span_err(&mut self, sp: Span, m: &str) { self.sess.span_diagnostic.span_err(sp, m) } -- cgit 1.4.1-3-g733a5