| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-02-20 | Use tcx queries instead of passing the values to `configure_and_expand`. | Oli Scherer | -13/+8 | |
| 2023-02-20 | Stuff a TyCtxt into the Resolver | Oli Scherer | -2/+1 | |
| 2023-02-20 | Run the resolver after TyCtxt construction | Oli Scherer | -38/+53 | |
| 2023-02-20 | Make untracked.cstore lockable so that resolution can still write to it when ↵ | Oli Scherer | -1/+4 | |
| using TyCtxt | ||||
| 2023-02-19 | Make public API, docs algorithm-agnostic | Jacob Pratt | -1/+1 | |
| 2023-02-16 | Remove save-analysis. | Nicholas Nethercote | -1/+0 | |
| Most tests involving save-analysis were removed, but I kept a few where the `-Zsave-analysis` was an add-on to the main thing being tested, rather than the main thing being tested. For `x.py install`, the `rust-analysis` target has been removed. For `x.py dist`, the `rust-analysis` target has been kept in a degenerate form: it just produces a single file `reduced.json` indicating that save-analysis has been removed. This is necessary for rustup to keep working. Closes #43606. | ||||
| 2023-02-14 | Simplify expansion logic | Oli Scherer | -3/+3 | |
| 2023-02-14 | Inline the expansion query | Oli Scherer | -28/+23 | |
| 2023-02-14 | Remove BoxedResolver | Oli Scherer | -102/+18 | |
| 2023-02-14 | Separate the lifetime of the session and the arena in the resolver | Oli Scherer | -4/+10 | |
| 2023-02-13 | rustc_resolve: Remove `Resolver::clone_output` | Vadim Petrochenkov | -23/+10 | |
| And remove `Clone` impls and `Lrc`s that are no longer necessary | ||||
| 2023-02-10 | Rollup merge of #107831 - nnethercote:query-refactoring, r=oli-obk | Matthias Krüger | -35/+20 | |
| Query refactoring Just some cleanups I found when learning about the query system. Best reviewed one commit at a time. r? `@oli-obk` | ||||
| 2023-02-10 | Auto merge of #102963 - ilammy:xray-basic, r=estebank | bors | -0/+2 | |
| Add `-Z instrument-xray` flag Implement MCP https://github.com/rust-lang/compiler-team/issues/561, adding `-Z instrument-xray` flag which enables XRay instrumentation in LLVM. | ||||
| 2023-02-09 | Remove `QueryContext`. | Nicholas Nethercote | -34/+19 | |
| There is a type `QueryCtxt`, which impls the trait `QueryContext`. Confusingly, there is another type `QueryContext`. The latter is (like `TyCtxt`) just a pointer to a `GlobalContext`. It's not used much, e.g. its `impl` block has a single method. This commit removes `QueryContext`, replacing its use with direct `GlobalCtxt` use. | ||||
| 2023-02-09 | Simplify `tls::enter_context`. | Nicholas Nethercote | -2/+2 | |
| 2023-02-09 | Parse "-Z instrument-xray" codegen option | Oleksii Lozovskyi | -0/+2 | |
| Recognize all bells and whistles that LLVM's XRay pass is capable of. The always/never settings are a bit dumb without attributes but they're still there. The default instruction count is chosen by the compiler, not LLVM pass. We'll do it later. | ||||
| 2023-02-07 | Replace a command line flag with an env var to allow tools to initialize the ↵ | Oli Scherer | -1/+0 | |
| tracing loggers at their own discretion | ||||
| 2023-02-05 | rustc_interface: remove huge error imports | est31 | -18/+16 | |
| 2023-01-30 | session: diagnostic migration lint on more fns | David Wood | -15/+33 | |
| Apply the diagnostic migration lint to more functions on `Session`. Signed-off-by: David Wood <david.wood@huawei.com> | ||||
| 2023-01-29 | Auto merge of #106227 - bryangarza:ctfe-limit, r=oli-obk | bors | -0/+1 | |
| Use stable metric for const eval limit instead of current terminator-based logic This patch adds a `MirPass` that inserts a new MIR instruction `ConstEvalCounter` to any loops and function calls in the CFG. This instruction is used during Const Eval to count against the `const_eval_limit`, and emit the `StepLimitReached` error, replacing the current logic which uses Terminators only. The new method of counting loops and function calls should be more stable across compiler versions (i.e., not cause crates that compiled successfully before, to no longer compile when changes to the MIR generation/optimization are made). Also see: #103877 | ||||
| 2023-01-27 | Compute generator saved locals on MIR. | Camille GILLOT | -0/+9 | |
| 2023-01-23 | Replace terminator-based const eval limit | Bryan Garza | -0/+1 | |
| - Remove logic that limits const eval based on terminators, and use the stable metric instead (back edges + fn calls) - Add unstable flag `tiny-const-eval-limit` to add UI tests that do not have to go up to the regular 2M step limit | ||||
| 2023-01-23 | Store the gctxt instead of fetching it twice. | Oli Scherer | -1/+1 | |
| 2023-01-23 | Make `output_filenames` a real query | Oli Scherer | -27/+13 | |
| 2023-01-23 | Remove another unneeded use of the resolver | Oli Scherer | -19/+23 | |
| 2023-01-20 | Auto merge of #106090 - WaffleLapkin:dereffffffffff, r=Nilstrieb | bors | -4/+3 | |
| Remove some `ref` patterns from the compiler Previous PR: https://github.com/rust-lang/rust/pull/105368 r? `@Nilstrieb` | ||||
| 2023-01-17 | Don't call closures immediately, use `try{}` blocks | Maybe Waffle | -4/+3 | |
| 2023-01-16 | Avoid one more call site to `Compiler::expansion` | Oli Scherer | -1/+1 | |
| 2023-01-16 | Move compiler input and ouput paths into session | Oli Scherer | -58/+42 | |
| 2023-01-16 | Group some commonly passed together values into a struct | Oli Scherer | -52/+34 | |
| 2023-01-16 | Remove redundant `input_path` field from `Config` | Oli Scherer | -5/+2 | |
| 2023-01-16 | remove some arguments that can also be fed at the caller side | Oli Scherer | -34/+26 | |
| 2023-01-16 | Remove `prepare_outputs` | Oli Scherer | -19/+9 | |
| 2023-01-13 | Rollup merge of #106678 - Veykril:proc-macro-panic-abort, r=eholk | Matthias Krüger | -1/+11 | |
| Warn when using panic-strategy abort for proc-macro crates See https://github.com/rust-lang/rust/issues/82320, this simply warns for now as that seems like the best step that can be immediately taken (opposed to straight up rejecting or ignoring) | ||||
| 2023-01-13 | Rollup merge of #104645 - yukiomoto:log-backtrace-option, r=oli-obk | Matthias Krüger | -0/+1 | |
| Add log-backtrace option to show backtraces along with logging according to #90698, I added a compiler option, `-Zlog-backtrace=filter`, where `filter` is a module name, to show backtraces for logging without rebuilding. resolve #90698 | ||||
| 2023-01-13 | Warn when using panic-strategy abort for proc-macro crates | Lukas Wirth | -1/+11 | |
| 2023-01-12 | Feed the `features_query` instead of grabbing it from the session lazily | Oli Scherer | -0/+1 | |
| 2023-01-12 | Remove `output_filenames` field from TyCtxt and feed the query instead | Oli Scherer | -1/+1 | |
| 2023-01-12 | Remove `untracked_crate` field and instead pass it along with the resolver. | Oli Scherer | -2/+3 | |
| 2023-01-12 | Feed `crate_name` query | Oli Scherer | -1/+2 | |
| 2023-01-12 | Feed `resolutions` query instead of it being a thin wrapper around an ↵ | Oli Scherer | -3/+3 | |
| untracked field | ||||
| 2023-01-12 | Harden the pre-tyctxt query system against accidental recomputation | Oli Scherer | -48/+60 | |
| 2023-01-12 | Add log-backtrace option to show backtraces along with logging | Yuki Omoto | -0/+1 | |
| 2023-01-10 | Change type of box_noalias to bool | Tomasz Miąsko | -1/+1 | |
| 2023-01-10 | Change type of mutable_noalias to bool | Tomasz Miąsko | -1/+1 | |
| 2023-01-05 | Fix `uninlined_format_args` for some compiler crates | nils | -14/+11 | |
| Convert all the crates that have had their diagnostic migration completed (except save_analysis because that will be deleted soon and apfloat because of the licensing problem). | ||||
| 2023-01-04 | Split `-Zchalk` flag into `-Ztrait-solver=(stock|chalk|next)` flag | Michael Goulet | -1/+2 | |
| 2023-01-04 | Rollup merge of #106274 - jyn514:dump-mono-stats, r=lqd | Matthias Krüger | -5/+7 | |
| Add JSON output to -Zdump-mono-stats Follow-up to https://github.com/rust-lang/rust/pull/105481 r? `@lqd` cc `@wesleywiser` | ||||
| 2023-01-02 | Add json output to `-Zdump-mono-stats` | Joshua Nelson | -5/+7 | |
| This allows analyzing the output programatically; for example, finding the item with the highest `total_estimate`. I also took the liberty of adding `untracked` tests to `rustc_session` and documentation to the unstable book for `dump-mono-items`. | ||||
| 2022-12-25 | Ignore span references from diagnostics. | Camille GILLOT | -2/+11 | |
| The diagnostics are replayed at the correct place anyway. | ||||
