-
Notifications
You must be signed in to change notification settings - Fork 96
Update manually drop attr project goal as per discussion #517
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
base: main
Are you sure you want to change the base?
Conversation
|
|
||
| #### Proposal 2: Add a `drop_in_place` method to the `Drop` trait | ||
|
|
||
| Add a `drop_in_place` method to the `Drop` trait, which is called by the compiler when a type is dropped. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Add a `drop_in_place` method to the `Drop` trait, which is called by the compiler when a type is dropped. | |
| Add a `drop_in_place` method to the `Destruct` trait, which is called by the compiler instead of the normal drop glue when a type is dropped. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll hold out for the design discussion here, and then update this accordingly :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think my biggest reservation is whether drop_in_place lives on the Drop trait or the Destruct trait. But I also don't think that needs to be bikeshed at the proposal stage and can be a topic for design once we're putting together an RFC.
Which is to say I am good with the proposal as is, but cautiously.
Co-authored-by: Nadrieril <Nadrieril@users.noreply.github.com>
Co-authored-by: Nadrieril <Nadrieril@users.noreply.github.com>
Updates the
manually-drop-attrproject goal as per the discussion at #project-goals/2026-workshop > Info regarding Experiment for #[manually_drop] project goal[#project-goals/2026-workshop > Info regarding Experiment for #[manually_drop] project goal](https://rust-lang.zulipchat.com/#narrow/channel/546987-project-goals.2F2026-workshop/topic/Info.20regarding.20Experiment.20for.20.23.5Bmanually_drop.5D.20project.20goal/with/572016060)
cc: @Nadrieril
Rendered