diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-07-29 01:12:41 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-08-07 19:21:43 -0700 |
| commit | ffb670ffcd69ed8e7cd13a7f06375ede752349e2 (patch) | |
| tree | a3e82ac51c713a80d620128813b4fa653451da97 /src/libsyntax/ext/expand.rs | |
| parent | 5b4244d917cc9341b1ec04c4e245d5f841d3facc (diff) | |
| download | rust-ffb670ffcd69ed8e7cd13a7f06375ede752349e2.tar.gz rust-ffb670ffcd69ed8e7cd13a7f06375ede752349e2.zip | |
Add initial support for a new formatting syntax
The new macro is available under the name ifmt! (only an intermediate name)
Diffstat (limited to 'src/libsyntax/ext/expand.rs')
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index c7020b990bf..a928680e093 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -1014,7 +1014,9 @@ pub fn expand_crate(parse_sess: @mut parse::ParseSess, .. *afp}; let f = make_fold(f_pre); - @f.fold_crate(c) + let ret = @f.fold_crate(c); + parse_sess.span_diagnostic.handler().abort_if_errors(); + return ret; } // given a function from idents to idents, produce |
