-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Refactor collections::List<T> to avoid using managed boxes #12620
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
Comments
My initial idea was to simply replace manage box with owned or even refcounted box. I have some prototypes ready however I'd require some help writing benchmark tests to verify. The idea that |
Using (With owned boxes, the linked list becomes a plain owned stack, and |
Close since List has been removed? |
Handle `rustc_on_unimplemented` in duplicated_attributes ```rust #[rustc_on_unimplemented( on( _Self = "&str", label = "`a" ), on( _Self = "alloc::string::String", label = "a" ), )] ``` The lint treats this as a repetition because `rustc_on_unimplemented::on::label` appears twice, but that's ok. Fixes rust-lang#12619 changelog: [`duplicated_attributes`]: fix handling of `rustc_on_unimplemented`
After closing #12344, we should think about the best strategy for replacing usage of managed boxes inside
List<T>
. @alexcrichton, @bill-myers and @eddyb provided good hints on how we should implementList<T>
internally (i.e. instead of using an enum, use a struct-based approach with 'head' and 'tail').The text was updated successfully, but these errors were encountered: