diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-01-08 21:25:42 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-01-08 21:48:04 +0300 |
| commit | 41a93cba38e1813986d4068cf2d2ccfcc35ef178 (patch) | |
| tree | 88559a0d9e78bd44e0e5ae56e585c609a4bff4a9 /src/librustc_interface | |
| parent | ed6468da160bd67a2ce0573427f09a98daff8c07 (diff) | |
| download | rust-41a93cba38e1813986d4068cf2d2ccfcc35ef178.tar.gz rust-41a93cba38e1813986d4068cf2d2ccfcc35ef178.zip | |
Remove `-Z continue-parse-after-error`
Diffstat (limited to 'src/librustc_interface')
| -rw-r--r-- | src/librustc_interface/passes.rs | 3 | ||||
| -rw-r--r-- | src/librustc_interface/tests.rs | 4 |
2 files changed, 0 insertions, 7 deletions
diff --git a/src/librustc_interface/passes.rs b/src/librustc_interface/passes.rs index 432f79bba03..6e776e7d554 100644 --- a/src/librustc_interface/passes.rs +++ b/src/librustc_interface/passes.rs @@ -54,7 +54,6 @@ use std::rc::Rc; use std::{env, fs, iter, mem}; pub fn parse<'a>(sess: &'a Session, input: &Input) -> PResult<'a, ast::Crate> { - sess.diagnostic().set_continue_after_error(sess.opts.debugging_opts.continue_parse_after_error); let krate = sess.time("parsing", || match input { Input::File(file) => parse_crate_from_file(file, &sess.parse_sess), Input::Str { input, name } => { @@ -62,8 +61,6 @@ pub fn parse<'a>(sess: &'a Session, input: &Input) -> PResult<'a, ast::Crate> { } })?; - sess.diagnostic().set_continue_after_error(true); - if sess.opts.debugging_opts.ast_json_noexpand { println!("{}", json::as_json(&krate)); } diff --git a/src/librustc_interface/tests.rs b/src/librustc_interface/tests.rs index 25ab7650b0e..c2e9c35fcd4 100644 --- a/src/librustc_interface/tests.rs +++ b/src/librustc_interface/tests.rs @@ -602,10 +602,6 @@ fn test_debugging_options_tracking_hash() { assert!(reference.dep_tracking_hash() != opts.dep_tracking_hash()); opts = reference.clone(); - opts.debugging_opts.continue_parse_after_error = true; - assert!(reference.dep_tracking_hash() != opts.dep_tracking_hash()); - - opts = reference.clone(); opts.debugging_opts.force_overflow_checks = Some(true); assert!(reference.dep_tracking_hash() != opts.dep_tracking_hash()); |
