rust/src/libsyntax_ext
bors c2ecab1121 Auto merge of #46732 - estebank:silence-recovered-blocks, r=petrochenkov
Do not emit type errors on recovered blocks

When a parse error occurs on a block, the parser will recover and create
a block with the statements collected until that point. Now a flag
stating that a recovery has been performed in this block is propagated
so that the type checker knows that the type of the block (which will be
identified as `()`) shouldn't be checked against the expectation to
reduce the amount of irrelevant diagnostic errors shown to the user.

Fix #44579.
2017-12-22 07:22:33 +00:00
..
deriving Auto merge of #46732 - estebank:silence-recovered-blocks, r=petrochenkov 2017-12-22 07:22:33 +00:00
asm.rs use field init shorthand EVERYWHERE 2017-08-15 15:29:17 -07:00
Cargo.toml Move unused-extern-crate to late pass 2017-08-27 19:02:24 +09:00
cfg.rs Produce expansion info for more builtin macros 2017-09-04 11:03:19 +02:00
compile_error.rs Stabilize the compile_error_macro feature 2017-07-25 07:09:31 -07:00
concat.rs Produce expansion info for more builtin macros 2017-09-04 11:03:19 +02:00
concat_idents.rs Produce expansion info for more builtin macros 2017-09-04 11:03:19 +02:00
env.rs Produce expansion info for more builtin macros 2017-09-04 11:03:19 +02:00
format.rs Retain information on whether a format argument has explicit position 2017-11-09 20:57:58 +00:00
format_foreign.rs Use Try syntax for Option in place of macros or match 2017-12-09 14:18:33 -08:00
global_asm.rs use field init shorthand EVERYWHERE 2017-08-15 15:29:17 -07:00
lib.rs Use hygiene to access the injected crate (core or std) from builtin macros. 2017-12-09 17:22:07 -08:00
log_syntax.rs make emit_feature_err take a ParseSess 2016-09-26 07:07:41 +02:00
proc_macro_impl.rs Simplify hygiene::Mark application, and 2017-06-26 02:05:45 +00:00
proc_macro_registrar.rs Make fields of Span private 2017-08-30 01:38:54 +03:00
trace_macros.rs Move syntax::util::interner -> syntax::symbol, cleanup. 2016-11-20 23:40:20 +00:00