-
-
Notifications
You must be signed in to change notification settings - Fork 485
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
GAT in Allocator Trait #1396
Comments
Thank you for the heads up! I made a PR with that change. I didn’t realize that GAT were stabilized for arbitrary type parameters. I thought it was only for lifetimes |
I am pretty sure they got stabilized together with the lifetimes in 1.65 |
I believe this was resolved with #1397 being merged. |
Now that GAT are stable in Rust, they could improve the Allocator Trait.
The
T
should be a GAT, which would remove a generic argument, and would allow the removal of a lot of trait bounds.Now we have a lot of code like this:
T
can then be late bound when actually allocating.I am not sure if I have overlooked something. There might be bad interactions for
T : ?Sized
The text was updated successfully, but these errors were encountered: