summary refs log tree commit diff
path: root/compiler/rustc_interface/src/interface.rs
AgeCommit message (Collapse)AuthorLines
2021-11-07Made temps-dir an unstable option.Tor Hovland-2/+3
2021-11-02Added the --temps-dir option.Tor Hovland-1/+14
2021-10-25Avoid a branch on key being local for queries that use the same local and ↵bjorn3-2/+2
extern providers
2021-10-23Rollup merge of #89468 - FabianWolff:issue-89358, r=jackh726Matthias Krüger-1/+4
Report fatal lexer errors in `--cfg` command line arguments Fixes #89358. The erroneous behavior was apparently introduced by `@Mark-Simulacrum` in https://github.com/rust-lang/rust/commit/a678e3191197f145451c97c6cc884e15cae38186; the idea is to silence individual parser errors and instead emit one catch-all error message after parsing. However, for the example in #89358, a fatal lexer error is created here: https://github.com/rust-lang/rust/blob/edebf77e0090195bf80c0d8cda821e1bf9d03053/compiler/rustc_parse/src/lexer/mod.rs#L340-L349 This fatal error aborts the compilation, and so the call to `new_parser_from_source_str()` never returns and the catch-all error message is never emitted. I have therefore changed the `SilentEmitter` to silence only non-fatal errors; with my changes, for the rustc invocation described in #89358: ```sh rustc --cfg "abc\"" ``` I get the following output: ``` error[E0765]: unterminated double quote string | = note: this error occurred on the command line: `--cfg=abc"` ```
2021-10-02Report fatal lexer errors in `--cfg` command line argumentsFabian Wolff-1/+4
2021-10-01Fix clippy lintsGuillaume Gomez-7/+1
2021-07-18Move OnDiskCache to rustc_query_impl.Camille GILLOT-1/+2
2021-07-08Rework SESSION_GLOBALS API to prevent overwriting itGuillaume Gomez-1/+1
2021-03-15Change the `.unwrap` to `.expect` with a helpful messagehyd-dev-1/+5
2021-03-15Add `rustc_interface::interface::Config::parse_sess_created`hyd-dev-1/+8
2021-02-19Move try_print_query_stack to rustc_interface.Camille GILLOT-1/+22
2020-12-22Add some intra-doc links to compiler docsJoshua Nelson-1/+2
2020-12-01Fix `unknown-crate` when using self-profile with rustdocJoshua Nelson-3/+0
... by removing a duplicate `crate_name` field in `interface::Config`, making it clear that rustdoc should be passing it to `config::Options` instead.
2020-11-24Add method to get the register_lints function from the compilerflip1995-0/+3
2020-09-27Add option to pass a custom codegen backend from a driverbjorn3-0/+5
2020-08-30mv compiler to compiler/mark-0/+209