about summary refs log tree commit diff
path: root/src/libsyntax/util/parser_testing.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-01-24 15:48:46 +0000
committerbors <bors@rust-lang.org>2019-01-24 15:48:46 +0000
commit01f8e25b15f4ab157c8e7c9c56054df7595ec0e1 (patch)
tree5c4eeb98011f8ae07b45521ea85759e8a168bc22 /src/libsyntax/util/parser_testing.rs
parent095b44c83b540bb4dbf74be1cae604f4bae87989 (diff)
parentdb97c48ad6e7f36468b152e9b08efc6f2f7da691 (diff)
downloadrust-01f8e25b15f4ab157c8e7c9c56054df7595ec0e1.tar.gz
rust-01f8e25b15f4ab157c8e7c9c56054df7595ec0e1.zip
Auto merge of #51285 - Mark-Simulacrum:remove-quote_apis, r=Manishearth
Remove quote_*! macros

This deletes a considerable amount of test cases, some of which we may want to keep. I'm not entirely certain what the primary intent of many of them was; if we should keep them I can attempt to edit each case to continue compiling without the quote_*! macros involved.

Fixes #46849.
Fixes #12265.
Fixes #12266.
Fixes #26994.

r? @Manishearth
Diffstat (limited to 'src/libsyntax/util/parser_testing.rs')
-rw-r--r--src/libsyntax/util/parser_testing.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/util/parser_testing.rs b/src/libsyntax/util/parser_testing.rs
index e407be6c1fe..d0b3cd865ce 100644
--- a/src/libsyntax/util/parser_testing.rs
+++ b/src/libsyntax/util/parser_testing.rs
@@ -25,7 +25,7 @@ fn with_error_checking_parse<'a, T, F>(s: String, ps: &'a ParseSess, f: F) -> T
 {
     let mut p = string_to_parser(&ps, s);
     let x = panictry!(f(&mut p));
-    p.abort_if_errors();
+    p.sess.span_diagnostic.abort_if_errors();
     x
 }