Add a system for registering function pointers similar to registering queries #678
Closed
1 of 3 tasks
Labels
major-change
A proposal to make a major change to rustc
T-compiler
Add this label so rfcbot knows to poll the compiler team
Proposal
We have some queries, that should not be queries, but only are queries, because their body needs to live in a crate other than
rustc_middle
. Queries are overkill for this and have various problems if the arguments are not incremental/query-cache safe (see rust-lang/rust#115819). Instead I propose to add a way to add function pointers toProviders
that will then get stored inTyCtxt
and have a method generated on theTyCtxt
that invokes the function pointer.Mentors or Reviewers
The implementation should be fairly straight forward, so anyone from T-compiler or T-compiler-contributors
Process
The main points of the Major Change Process are as follows:
@rustbot second
.-C flag
, then full team check-off is required.@rfcbot fcp merge
on either the MCP or the PR.You can read more about Major Change Proposals on forge.
Comments
This issue is not meant to be used for technical discussion. There is a Zulip stream for that. Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed.
The text was updated successfully, but these errors were encountered: