-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustc: Remove ~[T] from the language #14703
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
Conversation
When you say that |
For now they both signal a parser error, but after awhile I'd like to remove the parser hacks and allow them to become |
Sounds good to me. |
@@ -1510,52 +1519,6 @@ pub fn unzip<T, U, V: Iterator<(T, U)>>(mut iter: V) -> (Vec<T>, Vec<U>) { | |||
(ts, us) | |||
} | |||
|
|||
/// Mechanism to convert from a `Vec<T>` to a `[T]`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was under the impression this was meant to be a long term thing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As with Box<[T, ..N]>
, I figured this could be added back in a principled manner once DST landed. Do you think we should leave the trait definition for now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with it disappearing... if there's a need for it in future then it can reappear then.
Nice diffstat. ❤️ |
I'm in the middle of doing this properly for the DST work. I find it useful to preserve existing behaviour rather than rip it out and start again (in particular, there are bugs I've found purely because we have this stuff in the libraries and which we did not have tests for, I'm sure it will happen again). Is there any urgency for doing this right now? |
@nick29581 The existence of both |
I'd like to take the same route as |
The following features have been removed * box [a, b, c] * ~[a, b, c] * box [a, ..N] * ~[a, ..N] * ~[T] (as a type) * deprecated_owned_vector lint All users of ~[T] should move to using Vec<T> instead.
The following features have been removed * `box [a, b, c]` * `~[a, b, c]` * `box [a, ..N]` * `~[a, ..N]` * `~[T]` (as a type) * deprecated_owned_vector lint All users of ~[T] should move to using Vec<T> instead.
…tering, r=lnicola fix: generate delegate methods filters out functions that already exist on the struct's impls fixes rust-lang#14703
The following features have been removed
box [a, b, c]
~[a, b, c]
box [a, ..N]
~[a, ..N]
~[T]
(as a type)All users of ~[T] should move to using Vec instead.