Skip to content

Deprecate Vec::get and Vec::get_mut #15672

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
nrc opened this issue Jul 14, 2014 · 2 comments
Closed

Deprecate Vec::get and Vec::get_mut #15672

nrc opened this issue Jul 14, 2014 · 2 comments

Comments

@nrc
Copy link
Member

nrc commented Jul 14, 2014

In favour of indexing (#15652). The plan as discussed in #15652 is to deprecate get and get_mut now, change all uses in the compiler to indexing, then remove at some point in the future. At some other point >= the future we reinstate get/get_mut as returning Option<T>, but that stage is to be confirmed later when we have a wider discussion about ergonomics.

@nrc
Copy link
Member Author

nrc commented Jul 14, 2014

Oh, this needs to wait for a snapshot once #15652 lands.

@nrc
Copy link
Member Author

nrc commented Jul 16, 2014

I was wrong, this didn't need a snapshort and the deprecation of get at least happened in #15652.

@nrc nrc closed this as completed Jul 16, 2014
bors added a commit to rust-lang-ci/rust that referenced this issue Nov 13, 2023
…io, r=lnicola

Improve useRustcErrorCode description

Fixes rust-lang#15666
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

No branches or pull requests

1 participant