-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Insignificant destructors rfc 2229 #84152
Conversation
r? @estebank (rust-highfive has picked a reviewer for you, use r? to override) |
r? @ghost |
Testing with CI. Local build kept ommitting |
Triage: switching to S-experimental since reviewer=ghost. |
532ebb9
to
eb794ce
Compare
This comment has been minimized.
This comment has been minimized.
5a39524
to
f37ed61
Compare
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.
nits, LGTM otherwise
src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.fixed
Outdated
Show resolved
Hide resolved
src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_no_migrations.rs
Outdated
Show resolved
Hide resolved
src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.rs
Show resolved
Hide resolved
f37ed61
to
2d12033
Compare
☔ The latest upstream changes (presumably #84982) made this pull request unmergeable. Please resolve the merge conflicts. |
2d12033
to
9a0a8aa
Compare
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.
Looks great! A few more nits.
☔ The latest upstream changes (presumably #84730) made this pull request unmergeable. Please resolve the merge conflicts. |
…type has a significant drop
9a0a8aa
to
a7e1cec
Compare
@bors r+ |
📌 Commit a7e1cec has been approved by |
☀️ Test successful - checks-actions |
rustc_insignificant_dtor
to annotate the drop method.A type marked with the attribute
rustc_insignificant_dtor
is considered to not be significant. A drop is significant if it is implemented by the user or does anything that will have any observable behavior (other than freeing up memory).rust-lang/project-rfc-2229#35