about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/queries.rs
AgeCommit message (Collapse)AuthorLines
2022-09-30Fix typonils-1/+1
2022-09-30Update compiler/rustc_interface/src/queries.rsCamille Gillot-1/+1
2022-09-30Add comment explaining why we flush delayed bugs before codegennils-0/+2
2022-09-27Flush delayed bugs before codegenNilstrieb-0/+2
Sometimes it can happen that invalid code like a TyKind::Error makes its way through the compiler without triggering any errors (this is always a bug in rustc but bugs do happen sometimes :)). These ICEs will manifest in the backend like as cg_llvm not being able to get the layout of `[type error]`, which makes it hard to debug. By flushing before codegen, we display all the delayed bugs, making it easier to trace it to the root of the problem.
2022-09-01Always import all tracing macros for the entire crate instead of piecemeal ↵Oli Scherer-1/+1
by module
2022-08-22Remove use of DiagnosticArgFromDisplayGiacomo Stevanato-6/+2
2022-08-22Move rustc_interface diagnostics to struct SessionDiagnostic derivesGiacomo Stevanato-9/+9
2022-07-13Rename `debugging_opts` to `unstable_opts`Joshua Nelson-1/+1
This is no longer used only for debugging options (e.g. `-Zoutput-width`, `-Zallow-features`). Rename it to be more clear.
2022-07-06Make AST lowering a query.Camille GILLOT-5/+5
2022-05-10only_local: always check for misuselcnr-4/+1
2022-04-02Address review comments and add a testJakub Beránek-1/+1
2022-04-02Include a header in .rlink files to provide nicer error messages when a ↵Jakub Beránek-3/+3
wrong file is parsed as .rlink
2022-03-16rustc_error: make ErrorReported impossible to constructmark-5/+2
There are a few places were we have to construct it, though, and a few places that are more invasive to change. To do this, we create a constructor with a long obvious name.
2022-03-02rename ErrorReported -> ErrorGuaranteedmark-2/+2
2022-02-19Adopt let else in more placesest31-4/+1
2022-02-09Auto merge of #93724 - Mark-Simulacrum:drop-query-stats, r=michaelwoeristerbors-4/+0
Delete -Zquery-stats infrastructure These statistics are computable from the self-profile data and/or ad-hoc collectable as needed, and in the meantime contribute to rustc bootstrap times -- locally, this PR shaves ~2.5% from rustc_query_impl builds in instruction counts. If this does lose some functionality we want to keep, I think we should migrate it to self-profile (or a similar interface) rather than this ad-hoc reporting.
2022-02-06Delete query statsMark Rousskov-4/+0
These statistics are computable from the self-profile data and/or ad-hoc collectable as needed, and in the meantime contribute to rustc bootstrap times.
2022-02-05Store rlink data in opaque binary format on diskMark Rousskov-6/+3
2021-12-13Use `OutputFilenames` to generate output file for `-Zllvm-time-trace`Tomasz Miąsko-2/+5
The resulting profile will include the crate name and will be stored in the `--out-dir` directory. This implementation makes it convenient to use LLVM time trace together with cargo, in the contrast to the previous implementation which would overwrite profiles or store them in `.cargo/registry/..`.
2021-10-01Fix clippy lintsGuillaume Gomez-4/+4
2021-09-28rustc_session: Remove lint store from `Session`Vadim Petrochenkov-2/+2
2021-08-21Remove `Session.used_attrs` and move logic to `CheckAttrVisitor`Aaron Hill-1/+1
Instead of updating global state to mark attributes as used, we now explicitly emit a warning when an attribute is used in an unsupported position. As a side effect, we are to emit more detailed warning messages (instead of just a generic "unused" message). `Session.check_name` is removed, since its only purpose was to mark the attribute as used. All of the callers are modified to use `Attribute.has_name` Additionally, `AttributeType::AssumedUsed` is removed - an 'assumed used' attribute is implemented by simply not performing any checks in `CheckAttrVisitor` for a particular attribute. We no longer emit unused attribute warnings for the `#[rustc_dummy]` attribute - it's an internal attribute used for tests, so it doesn't mark sense to treat it as 'unused'. With this commit, a large source of global untracked state is removed.
2021-06-30Fix AST pretty.Camille GILLOT-3/+3
2021-06-30Move AST crate.Camille GILLOT-11/+9
2021-06-30Move lowering to create_global_ctxt.Camille GILLOT-14/+2
2021-06-30Inline lower_to_hir.Camille GILLOT-33/+18
2021-06-30Separate resolver creation from expansion.Camille GILLOT-8/+9
2021-06-30Simplify DepGraph creation.Camille GILLOT-25/+12
2021-06-04A couple of small cleanupsbjorn3-12/+15
2021-05-25Don't panic when failing to initialize incremental directory.Eric Huss-2/+2
2021-05-12Use () for analysis.Camille GILLOT-1/+1
2021-05-12Use () for entry_fn.Camille GILLOT-1/+1
2021-04-29Implement RFC 1260 with feature_name `imported_main`.Charles Lew-1/+1
2021-03-30Stream the dep-graph to a file.Camille GILLOT-1/+10
2021-02-19Move the query system to rustc_query_impl.Camille GILLOT-4/+4
2021-02-19Make alloc_self_profile_query_strings a standalone function.Camille GILLOT-1/+1
2021-02-19Make QueryEngine opaque to TyCtxt.Camille GILLOT-1/+5
2021-01-23Calculate self-profile strings in `Compiler::enter` instead in codegenJoshua Nelson-3/+13
This avoids each tool having to separately find and call `self_profile_alloc_strings`. - Don't compute the global context if it hasn't yet been computed This avoids giving extraneous errors about unresolved names if an error occurs during parsing.
2020-12-29Remove `compile-fail` test suiteVadim Petrochenkov-2/+2
2020-12-28Rollup merge of #79662 - bjorn3:move_more_code_out_of_codegen_backend, r=oli-obkDylan DPC-0/+1
Move some more code out of CodegenBackend::{codegen_crate,link} Kind of a follow up to #77795
2020-12-22Add some intra-doc links to compiler docsJoshua Nelson-1/+5
2020-12-17Move some code out of CodegenBackend::{codegen_crate,link}bjorn3-0/+1
2020-12-01Fix `unknown-crate` when using self-profile with rustdocJoshua Nelson-7/+5
... 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-14Move Steal to rustc_data_structures.Camille GILLOT-1/+1
2020-10-10Use fixed type for CodegenResultsbjorn3-1/+15
This also moves the -Zno-link implementation to rustc_interface
2020-10-10Move finalize_session_directory call out of cg_llvmbjorn3-0/+8
This causes it to be called even when passing `-Zno-link`, when linking fails or when neither `--emit link` nor `--emit metadata` is used.
2020-10-10Move save_work_product_index call out of cg_llvmbjorn3-3/+11
2020-08-30mv compiler to compiler/mark-0/+397