-
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
Intern external constraints in new solver #107621
Intern external constraints in new solver #107621
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor |
18eb9f8
to
eb67e26
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few nits, then r=me
@@ -0,0 +1,55 @@ | |||
use std::ops::ControlFlow; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add this file to the auto notifs file for the initiative
@@ -437,18 +428,18 @@ impl<'tcx> EvalCtxt<'_, 'tcx> { | |||
} | |||
|
|||
#[instrument(level = "debug", skip(infcx), ret)] | |||
fn take_external_constraints<'tcx>( | |||
fn take_and_intern_external_constraints<'tcx>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i feel like the intern
isn't too useful here as the exact way external constraints are stored is irrelevant for the caller 🤔
would keep the current name (or actually rename it to compute_external_query_constraints
or sth)
eb67e26
to
a41655d
Compare
a41655d
to
41883fd
Compare
@bors r=lcnr rollup |
…mpiler-errors Rollup of 8 pull requests Successful merges: - rust-lang#106887 (Make const/fn return params more suggestable) - rust-lang#107519 (Add type alias for raw OS errors) - rust-lang#107551 ( Replace `ConstFnMutClosure` with const closures ) - rust-lang#107595 (Retry opening proc-macro DLLs a few times on Windows.) - rust-lang#107615 (Replace nbsp in all rustdoc code blocks) - rust-lang#107621 (Intern external constraints in new solver) - rust-lang#107631 (loudly tell people when they change `Cargo.lock`) - rust-lang#107632 (Clarifying that .map() returns None if None.) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Makes the query response
Copy
, fixing a few FIXMEs.