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 uppermit `Drop` types in constants (tracking issue for RFC #1440) #33156
Comments
nikomatsakis
added
T-lang
B-unstable
labels
Apr 22, 2016
nikomatsakis
referenced this issue
Apr 22, 2016
Merged
RFC - Allow Drop types in statics/const functions #1440
eddyb
self-assigned this
Apr 25, 2016
bors
added a commit
that referenced
this issue
May 6, 2016
bors
added a commit
that referenced
this issue
May 7, 2016
bors
added a commit
that referenced
this issue
May 7, 2016
bors
added a commit
that referenced
this issue
May 7, 2016
bors
added a commit
that referenced
this issue
May 7, 2016
bors
added a commit
that referenced
this issue
May 8, 2016
This comment has been minimized.
This comment has been minimized.
kornholi
commented
Jun 3, 2016
|
Ran into an ICE: #34053 |
nrc
added
B-RFC-approved
B-RFC-implemented
and removed
B-RFC-approved
labels
Aug 29, 2016
Mark-Simulacrum
referenced this issue
Dec 22, 2016
Open
UnsafeCell allows types with destructors to end up in statics. #30667
This comment has been minimized.
This comment has been minimized.
|
Is there anything holding up this feature? No activity. This is used by Rocket. |
This comment has been minimized.
This comment has been minimized.
coder543
commented
Feb 6, 2017
|
Bumping this as well. It seems like a good candidate for stabilization? |
This comment has been minimized.
This comment has been minimized.
|
+1 for stabilization. Servo has a hack to work around this: a separate type with no destructor for using a static phf map, and a conversion during lookup. (This is in a crate used by Firefox, which runs on stable Rust.) Stabilizing would allow removing this hack. |
This comment has been minimized.
This comment has been minimized.
|
I feel ok with stabilizing drop types in statics specifically. |
This comment has been minimized.
This comment has been minimized.
|
@rfcbot fcp merge I propose that we stabilize this feature, which allows types that implement |
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Mar 2, 2017
•
|
Team member @nikomatsakis has proposed to merge 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. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Mar 14, 2017
|
@aturon proposal cancelled. |
pnkfelix
referenced this issue
Mar 20, 2017
Merged
Amend #1440: allow `const` items to contain drop types. #1817
This comment has been minimized.
This comment has been minimized.
Mark-Simulacrum
added
the
C-tracking-issue
label
Jul 22, 2017
This comment has been minimized.
This comment has been minimized.
|
I have a branch with the forwards compatibility checks for #40036, with no known stable code breakages, and one unstable intended regression (ironically, in @SergioBenitez's Rocket). |
Ryan1729
added a commit
to Ryan1729/live-code-sdl2-opengl-2_1-template
that referenced
this issue
Aug 10, 2017
eddyb
changed the title
permit `Drop` types in statics (tracking issue for RFC #1440)
permit `Drop` types in constants (tracking issue for RFC #1440)
Aug 28, 2017
This comment has been minimized.
This comment has been minimized.
|
With rvalue promotion stabilized, #43932 produces no regressions and is waiting on review. |
This comment has been minimized.
This comment has been minimized.
|
@eddyb I think it's totally fine to stabilize the original feature at this point, but am slightly wary of stabilizing the amendment immediately upon implementation. OTOH, it's a little hard to imagine that we'll get much feedback on nightly about it. |
This comment has been minimized.
This comment has been minimized.
|
@rfcbot fcp merge I propose that we implement the amendment and stabilize this feature now that the main blocker has been resolved - see #33156 (comment) also. |
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Aug 31, 2017
•
|
Team member @eddyb has proposed to merge 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
Aug 31, 2017
eddyb
referenced this issue
Aug 31, 2017
Merged
Allow Drop types in const's too, with #![feature(drop_types_in_const)]. #44212
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Sep 1, 2017
|
|
rfcbot
added
final-comment-period
and removed
proposed-final-comment-period
labels
Sep 1, 2017
bors
added a commit
that referenced
this issue
Sep 7, 2017
bors
added a commit
that referenced
this issue
Sep 7, 2017
bors
added a commit
that referenced
this issue
Sep 7, 2017
bors
added a commit
that referenced
this issue
Sep 8, 2017
bors
added a commit
that referenced
this issue
Sep 9, 2017
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Sep 11, 2017
|
The final comment period is now complete. |
nikomatsakis commentedApr 22, 2016
•
edited by eddyb
Tracking issue for rust-lang/rfcs#1440: "Allow Drop types in statics/const functions"