Skip to content

Removed slice <-> view distinction in vec and str #5466

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

Conversation

Kimundi
Copy link
Member

@Kimundi Kimundi commented Mar 21, 2013

A slice now always refers to something that returns an borrowed pointer, views don't exist anymore. If you want to have an explictit copy of a slice, use to_owned()

Kimundi added 3 commits March 21, 2013 01:50
renamed str::slice -> slice_DBG_UNIQ
changed vec slice method -> to_owned()
renamed vec view method  -> slice_V_DBG_BRWD

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
bors added a commit that referenced this pull request Mar 21, 2013

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
A slice now always refers to something that returns an borrowed pointer, views don't exist anymore. If you want to have an explictit copy of a slice, use `to_owned()`
@bors bors closed this Mar 21, 2013
oli-obk pushed a commit to oli-obk/rust that referenced this pull request May 2, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…=flip1995

large_enum_variant: Report sizes of variants

This reports the sizes of the largest and second-largest variants.

Closes rust-lang#5459

changelog: `large_enum_variant`: Report the sizes of the largest and second-largest variants.
oli-obk pushed a commit to oli-obk/rust that referenced this pull request May 2, 2020
Rollup of 5 pull requests

Successful merges:

 - rust-lang#5226 (Add lint for explicit deref and deref_mut method calls)
 - rust-lang#5248 (Add lint on large non scalar const)
 - rust-lang#5430 (Disallow bit-shifting in integer_arithmetic)
 - rust-lang#5466 (large_enum_variant: Report sizes of variants)
 - rust-lang#5468 (Zero single char names)

Failed merges:

r? @ghost

changelog: rollup
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.

None yet

3 participants