Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd DynSized trait (rebase of #44469) #46108
Conversation
rust-highfive
assigned
pnkfelix
Nov 20, 2017
kennytm
added
the
S-waiting-on-review
label
Nov 20, 2017
This comment has been minimized.
This comment has been minimized.
|
Letting @nikomatsakis Any chance that bounds on |
This comment has been minimized.
This comment has been minimized.
|
A couple of interesting points that weren't mentioned in the conversation on #44469:
Because of the potential for future breakage, it may make sense to special-case auto traits, so that they don't have any implicit supertraits. As long as auto traits can't have items, it hopefully should be possible to add or remove implicit supertraits without breaking. Or alternatively, if auto traits could be allowed to have supertraits, we could allow that, as @Zoxc has just mentioned |
This comment has been minimized.
This comment has been minimized.
|
cc @bluss |
This comment has been minimized.
This comment has been minimized.
|
@Zoxc I saw your comment just before I posted mine, just didn't want to rewrite everything. You basically said everything that I was saying, but in way fewer words :) |
This comment has been minimized.
This comment has been minimized.
|
ugh... |
plietar
and others
added some commits
Sep 3, 2017
mikeyhew
force-pushed the
mikeyhew:add-dynsized
branch
from
27133cc
to
b9a69c7
Nov 21, 2017
This comment has been minimized.
This comment has been minimized.
|
dynamically (at runtime) sized types are |
This comment has been minimized.
This comment has been minimized.
|
@liigo anything that is |
This comment has been minimized.
This comment has been minimized.
|
@iigo I'll try to explain that a bit better: |
This comment has been minimized.
This comment has been minimized.
|
Ping from triage @pnkfelix — will you be able to review this shortly? |
shepmaster
added
the
T-lang
label
Dec 1, 2017
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
Yes; not using the Rust allocator, basically. Not sure how important that is. (Sometimes I regret designing our allocators so that they supply the size of the value being freed, but I guess it's awfully late to try and reverse course there.)
Yes, true. |
This comment has been minimized.
This comment has been minimized.
It seems like the use cases for size_of_val diminish significantly without this requirement. I wonder if we couldn't revisit this? |
This comment has been minimized.
This comment has been minimized.
|
OK, I feel bad that this PR is sitting here with no viable means to go forward or backward yet. I remain highly nervous about i.e., do we want to move forward with (It seems clear we have to ensure it is 100% backwards compatible; I've kind of lost track of whether that is the case now.) @mikeyhew if your main motivation is to explore custom DST, I'd rather just explore that directly, while leaving the questions around |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
agreed, this PR doesn't feel like the right place!
OK, I see, I remember that now. Thanks for the clarification.
Sounds like a plan. |
nikomatsakis
added
the
I-nominated
label
Jan 25, 2018
This comment has been minimized.
This comment has been minimized.
|
FYI I've submitted rust-lang/rfcs#2310 as an alternative. |
This comment has been minimized.
This comment has been minimized.
|
@rfcbot fcp close We discussed this in the @rust-lang/lang meeting today. As a result of that conversation, I'm going to move to close this PR. The general feeling was that the "jury is still out" on what approach to use for handling Given this uncertainty, I at least am reluctant to land deep changes to the compiler at this time, and in particular not to the trait system (which I think is due for some overhauls). Past experience (e.g., with the Speaking personally: I do intend to leave a comment on rust-lang/rfcs#2255 "real soon now" trying to spell out some of the specific confusion that can arise from |
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Jan 26, 2018
•
|
Team member @nikomatsakis has proposed to close this. The next step is review by the rest of the tagged teams:
No concerns currently listed. Once these reviewers reach consensus, this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
rfcbot
added
the
proposed-final-comment-period
label
Jan 26, 2018
nikomatsakis
removed
the
I-nominated
label
Jan 29, 2018
This comment has been minimized.
This comment has been minimized.
|
Ping for ticky boxes @Zoxc, @arielb1, @jseyfried, @michaelwoerister! |
This comment has been minimized.
This comment has been minimized.
|
I tagged @arielb1 (who should be moved to alumni status, really) as well as @michaelwoerister (who is on vacation afaik) and @jseyfried (who probably also should be moved to alumni status). |
rfcbot
added
the
final-comment-period
label
Feb 5, 2018
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Feb 5, 2018
|
|
rfcbot
removed
the
proposed-final-comment-period
label
Feb 5, 2018
kennytm
added a commit
to kennytm/rfcbot-rs
that referenced
this pull request
Feb 6, 2018
This was referenced Feb 6, 2018
This comment has been minimized.
This comment has been minimized.
|
@nikomatsakis you can modify the FCP list here: https://github.com/anp/rfcbot-rs/blob/master/teams.toml |
anp
added a commit
to rust-lang/rfcbot-rs
that referenced
this pull request
Feb 7, 2018
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Feb 15, 2018
|
The final comment period is now complete. |
This comment has been minimized.
This comment has been minimized.
|
OK, going to close. Thanks @mikeyhew |
nikomatsakis
closed this
Feb 15, 2018
SimonSapin
referenced this pull request
Mar 28, 2018
Open
Tracking issue for RFC 1861: Extern types #43467
This comment has been minimized.
This comment has been minimized.
|
@nikomatsakis The language team decision against The problem seems to be |
This comment has been minimized.
This comment has been minimized.
|
@Ericson2314 I agree with you, I think that ultimately having a trait or traits like I've been meaning to comment on https://internals.rust-lang.org/t/pre-erfc-lets-fix-dsts/6663 and keep the discussion going, and I still think that is the best way forward – we should get an eRFC merged and start working on things experimentally. |
mikeyhew commentedNov 20, 2017
I managed to rebase @plietar's PR #44469, and get all the tests passing.
This unfortunately conflicts with #44917 (by @Zoxc) in a lot of places, so one of us will have to do a rebase after the other gets merged.
r? @pnkfelix since you were reviewing #44469
cc @arielb1