diff options
| author | Kevin Cantu <me@kevincantu.org> | 2012-10-12 12:32:36 -0700 |
|---|---|---|
| committer | Kevin Cantu <me@kevincantu.org> | 2012-10-12 14:14:48 -0700 |
| commit | 1bede1f5e0012069feaf093a6287256af606ff92 (patch) | |
| tree | d992d648999c3e5ed947fc1db4b35af08fd2f9f8 /src/libsyntax/ext/base.rs | |
| parent | 45d1cd83ab903d377f3b03fd2dc74da42100e308 (diff) | |
| download | rust-1bede1f5e0012069feaf093a6287256af606ff92.tar.gz rust-1bede1f5e0012069feaf093a6287256af606ff92.zip | |
Replace several common macros of the form #m[...] with m!(...)
This commit replaces nearly all remaining uses of #fmt, #debug, #error, and #info, and fixes some error messages...
Diffstat (limited to 'src/libsyntax/ext/base.rs')
| -rw-r--r-- | src/libsyntax/ext/base.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index c106042b9a3..94bf2a43f28 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -269,21 +269,21 @@ fn get_mac_args(cx: ext_ctxt, sp: span, arg: ast::mac_arg, match max { Some(max) if ! (min <= elts_len && elts_len <= max) => { cx.span_fatal(sp, - fmt!("#%s takes between %u and %u arguments.", + fmt!("%s! takes between %u and %u arguments.", name, min, max)); } None if ! (min <= elts_len) => { - cx.span_fatal(sp, fmt!("#%s needs at least %u arguments.", + cx.span_fatal(sp, fmt!("%s! needs at least %u arguments.", name, min)); } _ => return elts /* we are good */ } } _ => { - cx.span_fatal(sp, fmt!("#%s: malformed invocation", name)) + cx.span_fatal(sp, fmt!("%s!: malformed invocation", name)) } }, - None => cx.span_fatal(sp, fmt!("#%s: missing arguments", name)) + None => cx.span_fatal(sp, fmt!("%s!: missing arguments", name)) } } |
