-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Properly substitute inherent associated types. #105224
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
Looks good to me! @bors r+ rollup |
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#101975 (Suggest to use . instead of :: when accessing a method of an object) - rust-lang#105141 (Fix ICE on invalid variable declarations in macro calls) - rust-lang#105224 (Properly substitute inherent associated types.) - rust-lang#105236 (Add regression test for rust-lang#47814) - rust-lang#105247 (Use parent function WfCheckingContext to check RPITIT.) - rust-lang#105253 (Update a couple of rustbuild deps) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Thanks! Does it handle inherent GATs (seeing you only subst. the params from the ADT) or should I open a new issue? E.g. the following ICEs on nightly: #![feature(inherent_associated_types)]
struct S;
impl S { type P<T> = T }
fn main() { let _: S::P<()> = (); } |
I've just checked and it does handle them correctly which is absolutely awesome! |
…errors Normalize inherent associated types after substitution Fixes rust-lang#105314. r? `@cjgillot` (rust-lang#105224) `@rustbot` label F-inherent_associated_types
…errors Normalize inherent associated types after substitution Fixes rust-lang#105314. r? ``@cjgillot`` (rust-lang#105224) ``@rustbot`` label F-inherent_associated_types
…errors Normalize inherent associated types after substitution Fixes rust-lang#105314. r? ```@cjgillot``` (rust-lang#105224) ```@rustbot``` label F-inherent_associated_types
…errors Normalize inherent associated types after substitution Fixes rust-lang#105314. r? ````@cjgillot```` (rust-lang#105224) ````@rustbot```` label F-inherent_associated_types
Fixes #104240