Skip to content

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

Closed
Kimundi wants to merge 3 commits into
rust-lang:incomingfrom
Kimundi:view-slice-rename
Closed

Kimundi wants to merge 3 commits into
rust-lang:incomingfrom
Kimundi:view-slice-rename

Conversation

@Kimundi

@Kimundi Kimundi commented Mar 21, 2013

Copy link
Copy Markdown
Contributor

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
bors added a commit that referenced this pull request 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()`
@bors bors closed this Mar 21, 2013
oli-obk pushed a commit to oli-obk/rust that referenced this pull request May 2, 2020
…=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
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
5451: Highlight more cases of SyntaxKind when it is a punctuation r=matklad a=GrayJack

This maybe closes rust-lang#5406
Closes  rust-lang#5453

Separate what one expect to be a punctuation semantic token (like `,`, `;`, `(`, etc), and what is not (`&`, `::`, `+`, etc)

5463: Bump lexer r=matklad a=kjeremy

Since we're now on rust 1.45

5465: Bump chalk r=matklad a=kjeremy



5466: Do not show default types in function and closure return values r=matklad a=SomeoneToIgnore

Avoid things like 
<img width="522" alt="image" src="https://user-images.githubusercontent.com/2690773/87985936-1bbe4f80-cae5-11ea-9b8a-5383d896c296.png">


Co-authored-by: GrayJack <[email protected]>
Co-authored-by: kjeremy <[email protected]>
Co-authored-by: Kirill Bulatov <[email protected]>
RalfJung added a commit to RalfJung/rust that referenced this pull request Oct 24, 2026
…ated

get rid of check_shim_sig_deprecated
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.

3 participants