about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/query/plumbing.rs
AgeCommit message (Collapse)AuthorLines
2025-04-29Reformat parameters to macros used by with-all-queriesZalathar-2/+5
2025-04-23MoreMichael Goulet-2/+2
2025-04-22Properly drain pending obligations for coroutinesMichael Goulet-2/+2
2025-03-26Avoiding calling queries when collecting active queriesJohn Kåre Alsaker-1/+1
2025-03-09Auto merge of #137695 - nnethercote:always-inline-query_get_at, r=saethlinbors-1/+1
Always inline `query_get_at`. r? `@saethlin`
2025-03-07compiler: Use size_of from the prelude instead of importedThalia Archibald-2/+2
Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the prelude instead of importing or qualifying them. These functions were added to all preludes in Rust 1.80.
2025-02-28Fix typo in query expansion documentationSamuel Tardieu-1/+1
2025-02-27Always inline `query_get_at`.Nicholas Nethercote-1/+1
2025-02-05Removed dependency on the field-offset crate.David Venhoek-3/+4
2025-02-01Mark the tcx-ensure wrapper types with `#[must_use]`Zalathar-0/+2
2025-02-01Rename `ensure_forwards_result_if_red` to `return_result_from_ensure_ok`Zalathar-2/+8
2025-02-01Rename `tcx.ensure_with_value()` to `tcx.ensure_done()`Zalathar-7/+19
2025-02-01Rename `tcx.ensure()` to `tcx.ensure_ok()`Zalathar-12/+33
2025-01-23Allow `arena_cache` queries to return `Option<&'tcx T>`Zalathar-6/+14
2025-01-13remove code duplication when hashing query result and interning nodeMartin Zacho-1/+0
Refactored the duplicated code into a function. `with_feed_task` currently passes the query key to `debug_assert!`. This commit changes that, so it debug prints the `DepNode`, as in `with_task`.
2024-12-14(Re-)Implement impl_trait_in_bindingsMichael Goulet-1/+1
2024-12-12Remove 'tcx lifetime from QuerySystemFnsbjorn3-4/+4
2024-12-06Remove 'tcx lifetime from OnDiskCachebjorn3-1/+1
2024-11-10query/plumbing: adjust comment to realityRalf Jung-1/+1
2024-10-29TypingMode :thinking:lcnr-1/+1
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-2/+2
2024-08-31disable size asserts in the compiler when randomizing layoutsThe 8472-0/+1
2024-07-29Reformat `use` declarations.Nicholas Nethercote-15/+14
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-04-29Remove `extern crate rustc_macros` from `rustc_middle`.Nicholas Nethercote-0/+1
2024-04-18Simplify `static_assert_size`s.Nicholas Nethercote-2/+2
We want to run them on all 64-bit platforms.
2024-04-16Outline default query and hook provider function implementationsDaniPopes-16/+20
2024-04-11move QueryKeyStringCache from rustc_middle to rustc_query_impl, where it ↵klensy-12/+0
actually used also allows to drop measureme dep on rustc_middle
2024-04-08Shrink the size of ClosureTypeInfo to fit into 64 bytes againOli Scherer-3/+5
2024-04-08Pass list of defineable opaque types into canonical queriesOli Scherer-4/+4
2024-04-03Check `x86_64` size assertions on `aarch64`, tooZalathar-2/+2
This makes it easier for contributors on aarch64 workstations (e.g. Macs) to notice when these assertions have been violated.
2024-03-26Remove `CacheSelector` trait now that we can use GATsOli Scherer-3/+1
2024-01-17Make crate_inherent_impls fallible and stop using `track_errors` for itOli Scherer-4/+8
2024-01-10Add `DiagCtxt::delayed_bug`.Nicholas Nethercote-1/+1
We have `span_delayed_bug` and often pass it a `DUMMY_SP`. This commit adds `delayed_bug`, which matches pairs like `err`/`span_err` and `warn`/`span_warn`.
2024-01-08Value recovery can take the whole CycleErrorMichael Goulet-1/+1
2023-12-24Remove `Session` methods that duplicate `DiagCtxt` methods.Nicholas Nethercote-1/+1
Also add some `dcx` methods to types that wrap `TyCtxt`, for easier access.
2023-12-02Rename `HandlerInner::delay_span_bug` as `HandlerInner::span_delayed_bug`.Nicholas Nethercote-1/+1
Because the corresponding `Level` is `DelayedBug` and `span_delayed_bug` follows the pattern used everywhere else: `span_err`, `span_warning`, etc.
2023-11-25rustc: Make `def_kind` mandatory for all `DefId`sVadim Petrochenkov-17/+0
2023-11-23Move WorkerLocal out of QueryArenasMark Rousskov-3/+4
This cuts librustc_driver.so code size by ~85 kilobytes.
2023-10-23Allow `ensure` queries to return `Result<(), ErrorGuaranteed>`Oli Scherer-3/+55
2023-09-21Move `DepKind` to `rustc_query_system` and define it as `u16`John Kåre Alsaker-4/+4
2023-08-27More precisely detect cycle errors from type_of on opaqueMichael Goulet-0/+3
2023-08-27Pass ErrorGuaranteed to cycle errorMichael Goulet-2/+3
2023-08-14Use `{Local}ModDefId` in many queriesNilstrieb-0/+22
2023-05-21Replace `QueryStruct` with arrays local to `rustc_query_impl`John Kåre Alsaker-13/+3
2023-05-18Rollup merge of #111703 - Zoxc:queries-mod, r=cjgillotDylan DPC-93/+64
Merge query property modules into one This merges all the query modules that defines types into a single module per query with a normal naming convention for type aliases. r? ``@cjgillot``
2023-05-18Merge query property modules into oneJohn Kåre Alsaker-93/+64
2023-05-17Delay a bug when overwriting fed value.Camille GILLOT-5/+13
2023-05-17Move rustc_middle/src/ty/query.rs to rustc_middle/src/query/plumbing.rsJohn Kåre Alsaker-0/+640