Remove -Z continue-parse-after-error
This commit is contained in:
parent
ed6468da16
commit
41a93cba38
36 changed files with 77 additions and 125 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -601,10 +601,6 @@ fn test_debugging_options_tracking_hash() {
|
|||
opts.debugging_opts.report_delayed_bugs = true;
|
||||
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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue