rust/src/libsyntax
Felix S. Klock II 2646663b5a Put in -Z continue-parse-after-error
This works by adding a boolean flag, `continue_after_error`, to
`syntax::errors::Handler` that can be imperatively set to `true` or
`false` via a new `fn set_continue_after_error`.

The flag starts off true (since we generally try to recover from
compiler errors, and `Handler` is shared across all phases).

Then, during the `phase_1_parse_input`, we consult the setting of the
`-Z continue-parse-after-error` debug flag to determine whether we
should leave the flag set to `true` or should change it to `false`.

----

(We might consider adding a debugflag to do such aborts in other
places where we are currently attempting recovery, such as resolve,
but I think the parser is the really important case to handle in the
face of #31994 and the parser bugs of varying degrees that were
injected by parse error recovery.)
2016-03-30 22:23:48 +02:00
..
diagnostics try! -> ? 2016-03-22 22:01:37 -05:00
errors Put in -Z continue-parse-after-error 2016-03-30 22:23:48 +02:00
ext try! -> ? 2016-03-22 22:01:37 -05:00
parse fix alignment 2016-03-22 22:03:54 -05:00
print fix alignment 2016-03-22 22:03:54 -05:00
util Auto merge of #29734 - Ryman:whitespace_consistency, r=Aatch 2016-03-07 20:06:17 -08:00
abi.rs
ast_util.rs
ast.rs try! -> ? 2016-03-22 22:01:37 -05:00
attr.rs
Cargo.toml rustbuild: Sync some Cargo.toml/lib.rs dependencies 2016-02-21 09:49:13 -08:00
codemap.rs fix alignment 2016-03-22 22:03:54 -05:00
config.rs
entry.rs
feature_gate.rs add naked function tracking issue # to feature gate definition 2016-03-23 17:14:19 +01:00
fold.rs Add default as contextual keyword, and parse it for impl items. 2016-03-14 15:04:33 -07:00
lib.rs sprinkle feature gates here and there 2016-03-22 22:02:47 -05:00
owned_slice.rs
ptr.rs
show_span.rs
std_inject.rs
str.rs
test.rs
visit.rs implement the ? operator 2016-03-07 14:39:39 -05:00