-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make extern_mod_stmt_cnum
into a regular function
#83128
Conversation
cc rust-lang#83126 It's very short, so there's no need for it to go through the query system.
r? @lcnr (rust-highfive has picked a reviewer for you, use r? to override) |
@bors r+ rollup=never (may be perf sensitive) |
📌 Commit 0e9be63 has been approved by |
do we clear the query cache if the |
I don't immediately see how it'd be different inside the query (i.e., why that would not lead to just as many problems as with this impl) -- but happy to r- this for now if you think that's warranted |
no, I also don't see how having a query helps here, so this PR seems good. The existence of this query just feels kind of weird to me, maybe it was intended to improve incremental reuse in case |
I think the important thing is that a |
Are you all sure this is the right fix? Making something not be a query will certainly avoid triggering errors emitted by the query system's sanity checking -- but it might just turn this into a silent error. This not being a query will mean there's no dependency tracking for it. |
@bors r- Sorry for barging in here, but this feels kind of fishy to me. @Aaron1011's previous suggestion of turning this into an eval-always query seems like the safer option to me. I'll take a closer look right now. |
Yes, I'm confident now that this should be an The fact that this has not been an So, to sum up: just make the query |
Closing in favor of #83153 |
cc #83126
It's very short, so there's no need for it to go through the query
system.