diff options
| author | bors <bors@rust-lang.org> | 2014-03-28 17:16:48 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-03-28 17:16:48 -0700 |
| commit | ff733c767a2ac48e5f94a37bc8ed3d2f1bc1141c (patch) | |
| tree | f398acb54f2432247f3c174555010b3055cd7133 /src/libsyntax/parse/parser.rs | |
| parent | cbfc0a5e33eb3d97a2995d120536b8dadc0cc0a2 (diff) | |
| parent | 451e8c1c6178750a4c1789f40749562164a980b7 (diff) | |
| download | rust-ff733c767a2ac48e5f94a37bc8ed3d2f1bc1141c.tar.gz rust-ff733c767a2ac48e5f94a37bc8ed3d2f1bc1141c.zip | |
auto merge of #13162 : alexcrichton/rust/attr-syntax, r=brson
This is the rebasing of #13068 with a fix for #13067 as the first commit.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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) } |
