Skip to content

Improve the Vec experience #13020

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

Closed
wants to merge 3 commits into from
Closed

Conversation

alexcrichton
Copy link
Member

The commits have the details.

@sfackler
Copy link
Member

Any crates that don't have #[allow(deprecated_owned_vector)] will need to have #[warn(deprecated_owned_vector)] added.

@emberian
Copy link
Member

They should have deny, IMO.

@sfackler
Copy link
Member

I think stage1+ has -D warnings or whatever the -Werror equivalent is.

@alexcrichton
Copy link
Member Author

This is not a case of regression. We have 26 crates, 24 of which have allow(deprecated_owned_vector). The only two that don't are the hexfloat and fourcc crates (very small crates).

I think that that statistic shows that this is not a useful lint at this time. I'm explicitly not removing it because it will be very useful as soon as the standard libraries are ported.

This is an incredibly common type, and it is expected to be used in many many
places. This type should be in the prelude.
Most of the standard distribution is still using ~[] instead of Vec, so this
lint is essentially useless currently. When the standard distribution has been
ported to not use ~[], then we can turn the lint back on.
It's now in the prelude.
bors added a commit that referenced this pull request Mar 20, 2014
@bors bors closed this Mar 20, 2014
@alexcrichton alexcrichton deleted the vec branch March 20, 2014 18:05
lnicola pushed a commit to lnicola/rust that referenced this pull request Aug 16, 2022
minor: Remove redundant --pre-release flag from publish
bors pushed a commit to rust-lang-ci/rust that referenced this pull request Jun 5, 2023
According to https://code.visualstudio.com/api/working-with-extensions/publishing-extension#prerelease-extensions, when publishing pre-release versions, `--pre-release` must also be passed in the publish step.

Currently the behavior with and without the flag seems to be the same, but since it's documented to be required, don't rely on this staying that way.

This flag was previously removed in rust-lang#13020, so this partially reverts that change.
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 5, 2023
…, r=lnicola

Specify `--pre-release` when publishing vsce nightly

According to https://code.visualstudio.com/api/working-with-extensions/publishing-extension#prerelease-extensions, when publishing pre-release versions, `--pre-release` must also be passed in the publish step.

Currently the behavior with and without the flag seems to be the same, but since it's documented to be required, don't rely on this staying that way.

This flag was previously removed in rust-lang#13020, so this partially reverts that change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants