rust/src/librustc_driver
Esteban Küber aaf3e318fc 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.
2017-12-21 14:57:42 -08:00
..
profile Compress "small" spans to 32 bits and intern "large" spans 2017-09-23 00:34:13 +03:00
build.rs rustc: Add some build scripts for librustc crates 2017-07-22 22:04:13 -07:00
Cargo.toml Add sync module to rustc_data_structures 2017-12-17 14:14:51 +01:00
derive_registrar.rs kill a bunch of one off tasks 2017-04-18 08:20:12 -04:00
driver.rs Auto merge of #46560 - Yoric:incr, r=michaelwoerister 2017-12-16 03:54:10 +00:00
lib.rs Rollup merge of #46705 - pornel:cargo-output, r=alexcrichton 2017-12-15 09:26:59 -05:00
pretty.rs Do not emit type errors on recovered blocks 2017-12-21 14:57:42 -08:00
README.md rework the README.md for rustc and add other readmes 2017-09-19 09:00:59 -04:00
target_features.rs Introduce temporary target feature crt_static_respected 2017-08-22 16:24:29 -05:00
test.rs trait alias fallout 2017-12-14 12:56:26 -05:00

NB: This crate is part of the Rust compiler. For an overview of the compiler as a whole, see the README.md file found in librustc.

The driver crate is effectively the "main" function for the rust compiler. It orchstrates the compilation process and "knits together" the code from the other crates within rustc. This crate itself does not contain any of the "main logic" of the compiler (though it does have some code related to pretty printing or other minor compiler options).