Skip to content

Conversation

@JayanAXHF
Copy link
Member

@JayanAXHF JayanAXHF commented Feb 4, 2026

Updates the manually-drop-attr project 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


#### 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.
Copy link
Member

@Nadrieril Nadrieril Feb 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Copy link
Member Author

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 :)

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.

JayanAXHF and others added 2 commits February 5, 2026 03:28
Co-authored-by: Nadrieril <Nadrieril@users.noreply.github.com>
Co-authored-by: Nadrieril <Nadrieril@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants