| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-11-16 | Reduce exposure of things. | Nicholas Nethercote | -2/+2 | |
| 2023-09-21 | Move `DepKind` to `rustc_query_system` and define it as `u16` | John Kåre Alsaker | -104/+39 | |
| 2023-09-04 | Use a specialized varint + bitpacking scheme for DepGraph encoding | Ben Kimock | -1/+17 | |
| 2023-09-03 | Encode DepKind as u16 | Ben Kimock | -1/+47 | |
| 2023-08-15 | Rollup merge of #114772 - fee1-dead-contrib:typed-did, r=b-naber | Guillaume Gomez | -1/+51 | |
| Add `{Local}ModDefId` to more strongly type DefIds` Based on #110862 by `@Nilstrieb` | ||||
| 2023-08-13 | Pass WorkProductMap to build_dep_graph instead of FxIndexMap | bjorn3 | -1/+1 | |
| Constructing an FxIndexMap is useless work as the iteration order never matters. | ||||
| 2023-08-13 | Add typed `{Local}DefId` for modules | Nilstrieb | -1/+51 | |
| This allows for better type safety in the compiler and also improves the documentation for many things, making it clear that they expect modules. | ||||
| 2023-08-09 | rustc: Move `stable_crate_id` from `Session` to `GlobalCtxt` | Vadim Petrochenkov | -2/+2 | |
| Removes a piece of mutable state. Follow up to #114578. | ||||
| 2023-07-30 | inline format!() args up to and including rustc_middle | Matthias Krüger | -2/+2 | |
| 2023-04-21 | Allow `LocalDefId` as the argument to `def_path_str` | Oli Scherer | -1/+1 | |
| 2023-04-18 | Store hashes in special types so they aren't accidentally encoded as numbers | Ben Kimock | -2/+3 | |
| 2023-04-03 | Hide warning. | Camille GILLOT | -2/+2 | |
| 2023-02-14 | Pass `DepContext` and `QueryContext` by value when practical | John Kåre Alsaker | -2/+2 | |
| 2023-02-09 | Simplify `tls::enter_context`. | Nicholas Nethercote | -1/+1 | |
| 2022-12-20 | rustc: Remove needless lifetimes | Jeremy Stucki | -1/+1 | |
| 2022-10-01 | Allow query system to recover a HirId. | Camille GILLOT | -6/+32 | |
| 2022-09-25 | Move the `codegen_unit` debug assert from `rustc_query_system` to `query_impl` | Joshua Nelson | -4/+0 | |
| This allows removing a function from the `DepKind` trait. | ||||
| 2022-09-25 | Move some more code from rustc_middle to rustc_query_system | Joshua Nelson | -14/+1 | |
| 2022-09-25 | Move functions on `DepKindStruct` from rustc_middle to rustc_query_system | Joshua Nelson | -60/+10 | |
| 2022-09-25 | Move `DepKindStruct` from rustc_middle to rustc_query_system | Joshua Nelson | -62/+3 | |
| 2022-09-24 | separate definitions and `HIR` owners | Takayuki Maeda | -1/+23 | |
| fix a ui test use `into` fix clippy ui test fix a run-make-fulldeps test implement `IntoQueryParam<DefId>` for `OwnerId` use `OwnerId` for more queries change the type of `ParentOwnerIterator::Item` to `(OwnerId, OwnerNode)` | ||||
| 2022-09-22 | Revert "Auto merge of #101620 - cjgillot:compute_lint_levels_by_def, r=oli-obk" | Camille GILLOT | -32/+6 | |
| This reverts commit 2cb9a65684dba47c52de8fa938febf97a73e70a9, reversing changes made to 750bd1a7ff3e010611b97ee75d30b7cbf5f3a03c. | ||||
| 2022-09-15 | Auto merge of #101173 - jyn514:simplify-macro-arguments, r=cjgillot | bors | -22/+13 | |
| Further simplify the macros generated by `rustc_queries` This doesn't actually move anything outside the macros, but it makes them simpler to read. - Add a new `rustc_query_names` macro. This allows a much simpler syntax for the matchers in the macros passed to it as a callback. - Convert `define_dep_nodes` and `alloc_once` to use `rustc_query_names`. This is possible because they only use the names (despite the quite complicated matchers in `define_dep_nodes`, none of the other arguments are used). - Get rid of `rustc_dep_node_append`. r? `@cjgillot` | ||||
| 2022-09-14 | Allow query system to recover a HirId. | Camille GILLOT | -6/+32 | |
| 2022-09-06 | Get rid of the emitted `rustc_query_names` and `rustc_cached_queries` macro | Joshua Nelson | -9/+10 | |
| We can avoid these by adding slightly more information to `rustc_query_append` instead. | ||||
| 2022-09-06 | Support doc-comments in `define_dep_nodes` | Joshua Nelson | -4/+4 | |
| 2022-09-06 | Further simplify the macros generated by `rustc_queries` | Joshua Nelson | -17/+7 | |
| - Add a new `rustc_query_names` macro. This allows a much simpler syntax for the matchers in the macros passed to it as a callback. - Convert `define_dep_nodes` and `alloc_once` to use `rustc_query_names`. This is possible because they only use the names (despite the quite complicated matchers in `define_dep_nodes`, none of the other arguments are used). - Get rid of `rustc_dep_node_append`. | ||||
| 2022-09-01 | Don't create two new closures for each query | Joshua Nelson | -3/+3 | |
| - Parameterize DepKindStruct over `'tcx` This allows passing in an invariant function pointer in `query_callback`, rather than having to try and make it work for any lifetime. - Add a new `execute_query` function to `QueryDescription` so we can call `tcx.$name` without needing to be in a macro context | ||||
| 2022-08-24 | Simplify the syntax for macros generated by `rustc_queries` | Joshua Nelson | -1/+1 | |
| - Disallow multiple macros callbacks in the same invocation. In practice, this was never used. - Remove the `[]` brackets around the macro name - Require an `ident`, not an arbitrary `tt` | ||||
| 2022-08-23 | Remove `$tcx` metavariable from `rustc_query_append` | Joshua Nelson | -2/+2 | |
| It's not actually necessary and it makes the code harder to read. | ||||
| 2022-07-06 | Use a dedicated DepKind for the forever-red node. | Camille GILLOT | -0/+4 | |
| 2022-07-06 | Allow to create definitions inside the query system. | Camille GILLOT | -2/+2 | |
| 2022-05-20 | Remove `crate` visibility usage in compiler | Jacob Pratt | -3/+6 | |
| 2022-04-17 | Stop using CRATE_DEF_INDEX. | Camille GILLOT | -2/+2 | |
| `CRATE_DEF_ID` and `CrateNum::as_def_id` are almost always what we want. | ||||
| 2022-02-16 | Adopt let_else in even more places | est31 | -1/+1 | |
| 2022-01-19 | Show a more informative panic message when `DefPathHash` does not exist | Aaron Hill | -1/+3 | |
| This should hopefully make it easier to debug incremental compilation bugs like #93096 without affecting performance. | ||||
| 2022-01-08 | Introduce new `TaskDepsRef` enum to track allow/ignore/forbid status | Aaron Hill | -3/+3 | |
| 2021-12-15 | Remove `in_band_lifetimes` from `rustc_middle` | Aaron Hill | -2/+2 | |
| See #91867 This was mostly straightforward. In several places, I take advantage of the fact that lifetimes are non-hygenic: a macro declares the 'tcx' lifetime, which is then used in types passed in as macro arguments. | ||||
| 2021-10-20 | Address review. | Camille GILLOT | -7/+0 | |
| 2021-10-20 | Inline DepNodeParams methods. | Camille GILLOT | -0/+14 | |
| 2021-10-20 | Build jump table at runtime. | Camille GILLOT | -10/+16 | |
| 2021-10-20 | Invoke callbacks from rustc_middle. | Camille GILLOT | -0/+30 | |
| 2021-10-20 | Merge two query callbacks arrays. | Camille GILLOT | -125/+83 | |
| 2021-10-20 | Drop has_params. | Camille GILLOT | -35/+2 | |
| 2021-10-20 | Move def_path_hash_to_def_id to rustc_middle. | Camille GILLOT | -5/+1 | |
| 2021-10-06 | Query the fingerprint style during key reconstruction | Mark Rousskov | -36/+40 | |
| Keys can be reconstructed from fingerprints that are not DefPathHash, but then we cannot extract a DefId from them. | ||||
| 2021-10-05 | Auto merge of #89266 - cjgillot:session-ich, r=michaelwoerister | bors | -3/+2 | |
| Move ICH to rustc_query_system Based on https://github.com/rust-lang/rust/pull/89183 The StableHashingContext does not need to be in rustc_middle. This PR moves it to rustc_query_system. This will avoid a dependency between rustc_ast_lowering and rustc_middle in https://github.com/rust-lang/rust/pull/89124. | ||||
| 2021-10-03 | Access StableHashingContext in rustc_query_system. | Camille GILLOT | -2/+1 | |
| 2021-10-03 | Remove re-export. | Camille GILLOT | -1/+1 | |
| 2021-10-02 | Prevent macro ambiguity errors | bjorn3 | -2/+2 | |
| The previous macro_rules! parsers failed when an additional modifier was added with ambiguity errors. The error is pretty unclear as to what exactly the cause here is, but this change simplifies the argument parsing code such that the error is avoided. | ||||
