Ignore PhantomData not in Drop impl for dropck #586
Labels
major-change
A proposal to make a major change to rustc
T-compiler
Add this label so rfcbot knows to poll the compiler team
Proposal
Simply ignore PhantomData for dropck, allowing the following to compile: (note that it compiles if you take out the
String
.)This is an user-facing change but mostly we just wanna see a crater run for this. Ignoring it "not in Drop impl" basically boils down to how it's currently used with
#[may_dangle]
and we don't wanna break that, but the above code is not unsound or anything so it seems like forbidding it is an oversight.see also rust-lang/rust#102810
Mentors or Reviewers
If you have a reviewer or mentor in mind for this work, mention then
here. You can put your own name here if you are planning to mentor the
work.
Process
The main points of the Major Change Process are as follows:
@rustbot second
.-C flag
, then full team check-off is required.@rfcbot fcp merge
on either the MCP or the PR.You can read more about Major Change Proposals on forge.
Comments
This issue is not meant to be used for technical discussion. There is a Zulip stream for that. Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed.
The text was updated successfully, but these errors were encountered: