Skip to content
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

Add the unsized keyword #12969

Closed
nrc opened this issue Mar 17, 2014 · 3 comments
Closed

Add the unsized keyword #12969

nrc opened this issue Mar 17, 2014 · 3 comments

Comments

@nrc
Copy link
Member

nrc commented Mar 17, 2014

Add an unsized keyword which can be used on traits and trait bounds. It should be feature gated and we might change the keyword later (type has been suggested). We will compute the 'sized'-ness of every type and ensure compatibility of types.

Blocks #12938

Assigned to me.

@nrc nrc mentioned this issue Mar 17, 2014
23 tasks
@flaper87
Copy link
Contributor

@nick29581 I've added this bug to the list of sub-bugs on #12938, we should do the same with the upcoming bugs blocking DST

This was referenced Apr 7, 2014
bors added a commit that referenced this issue Apr 23, 2014
Now with proper checking of enums and allows unsized fields as the last field in a struct or variant. This PR only checks passing of unsized types and distinguishing them from sized ones. To be safe we also need to control storage.

Closes issues #12969 and #13121, supersedes #13375 (all the discussion there is valid here too).
@brson
Copy link
Contributor

brson commented May 31, 2014

@nick29581 Is this done with 696f16e merged?

@nrc
Copy link
Member Author

nrc commented Jun 6, 2014

Yes, it is (although we are going with a totally different syntax which is still to do)

@nrc nrc closed this as completed Jun 6, 2014
flip1995 pushed a commit to flip1995/rust that referenced this issue Jul 11, 2024
…ednet

Fix some false-positive cases of `explicit_auto_deref`

changelog: [`explicit_auto_deref`] Fix some false-positive cases

Fix part of rust-lang#9841
Fix  rust-lang#12969

r? xFrednet
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

3 participants