Uh oh!
There was an error while loading. Please reload this page.
Remove variances from traits and deprecate PhantomFn/MarkerTrait - #23938
Conversation
pnkfelix
commented
Apr 1, 2015
anyway I'm still going to approve the PR (update: there was once a note on a commit above about the deprecation strategy and whether we would be restricted from "undeprecating" these traits in the future. But I eventually realized that there is a fundamental difference between an item marked both |
pnkfelix
commented
Apr 1, 2015
@bors r+ d580d1b |
nikomatsakis
commented
Apr 1, 2015
@bors r=pnkfelix e24f968 |
nikomatsakis
commented
Apr 1, 2015
Update: @alexcrichton encountered some errors combining this PR with the |
nikomatsakis
commented
Apr 1, 2015
I have to look more deeply, but perhaps that suggests variance on traits is more useful than originally anticipated -- particularly around lifetime parameters. |
alexcrichton
commented
Apr 2, 2015
bors
commented
Apr 2, 2015
☔ The latest upstream changes (presumably #23955) made this pull request unmergeable. Please resolve the merge conflicts. |
nikomatsakis
commented
Apr 2, 2015
OK, I rebased and fixed the bad interaction. |
nikomatsakis
commented
Apr 2, 2015
Feeling a wee bit undecided about whether to take this patch, though I still lean in favor. |
comments and also leave the entries in the variance tables for now.
nikomatsakis
commented
Apr 2, 2015
nikomatsakis
commented
Apr 2, 2015
Decided to go through with this. |
nikomatsakis
commented
Apr 2, 2015
Basic explanation of reasoning:
This adds up to: better to address trait variance more comprehensively in future and make |
bors
commented
Apr 2, 2015
⌛ Testing commit c2dba85 with merge a167956... |
bors
commented
Apr 2, 2015
💔 Test failed - auto-linux-64-nopt-t |
alexcrichton
commented
Apr 2, 2015
@bors: retry On Thu, Apr 2, 2015 at 3:31 PM, bors notifications@github.com wrote:
|
nikomatsakis
commented
Apr 3, 2015
@bors p=1 giving high priority because this is a backwards compat thing |
bors
commented
Apr 3, 2015
⌛ Testing commit c2dba85 with merge c14eb7c... |
bors
commented
Apr 3, 2015
💔 Test failed - auto-mac-64-nopt-t |
pnkfelix
commented
Apr 3, 2015
@bors retry |
pnkfelix
commented
Apr 3, 2015
@bors force |
bors
commented
Apr 3, 2015
pnkfelix
commented
Apr 3, 2015
(I forced the retry in the hopes that the build products from the previous attempt would still be usable, but perhaps I was incorrect about that, since I think normally bors writes some notes here when it has discovered it can reuse build products from a previous attempt.) |
There are still some remnants we could remove from the compiler (e.g. references to "subtraitrefs"; traits still have variance entries in the variance table), but this removes all user-visible bits I believe.
r? @pnkfelix
Fixes#22806 (since such traits would no longer exist)