Suggestion to wrap inner types using 'allocator_api' in tuple#90856
Suggestion to wrap inner types using 'allocator_api' in tuple#90856bors merged 1 commit intorust-lang:masterfrom ken-matsui:suggestion-to-wrap-vec-allocator-api-in-tuple
Conversation
|
r? @davidtwco (rust-highfive has picked a reviewer for you, use r? to override) |
|
I don't understand what it's suggesting. Perhaps to replace |
looking at #83250 makes it more obvious that it is suggesting |
davidtwco
left a comment
There was a problem hiding this comment.
This is looking much better, thanks for addressing those comments, a few more changes.
This comment has been minimized.
This comment has been minimized.
davidtwco
left a comment
There was a problem hiding this comment.
Looks good, thanks for your work on this.
|
@bors r+ |
|
📌 Commit 57494f7 has been approved by |
…askrgr Rollup of 6 pull requests Successful merges: - rust-lang#90856 (Suggestion to wrap inner types using 'allocator_api' in tuple) - rust-lang#91103 (Inhibit clicks on summary's children) - rust-lang#91137 (Give people a single link they can click in the contributing guide) - rust-lang#91140 (Split inline const to two feature gates and mark expression position inline const complete) - rust-lang#91148 (Use `derive_default_enum` in the compiler) - rust-lang#91153 (kernel_copy: avoid panic on unexpected OS error) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
|
Awesome. Thanks for getting to this even before I found out lol. Rust team is awesome. |
This PR provides a suggestion to wrap the inner types in tuple when being along with 'allocator_api'.
Closes #83250
error[E0658]: use of unstable library feature 'allocator_api' --> $DIR/suggest-vec-allocator-api.rs:2:23 | LL | let _vec: Vec<u8, _> = vec![]; - | ^ + | ----^ + | | + | help: consider wrapping the inner types in tuple: `(u8, _)` | = note: see issue #32838 <https://github.com/rust-lang/rust/issues/32838> for more information = help: add `#![feature(allocator_api)]` to the crate attributes to enable