| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:141bb957-2ed3-cb25-a305-b8c8870e7b22 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CF30:1FAE:1ACCFA7:237DBCC:6B025171 |
| html-safe-nonce | c669aa0c881054cd53c5c1339d754a1bedf79a34031d13a0b242859e856e4592 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjMwOjFGQUU6MUFDQ0ZBNzoyMzdEQkNDOjZCMDI1MTcxIiwidmlzaXRvcl9pZCI6IjEyODEzNDU2Mjg0NjI1MzUwMjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f6881e95569bd81374edddca0828e9b93ab44aeec8fd2fd6932f2d3a547d497e |
| hovercard-subject-tag | pull_request:4453156621 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/Cpp2Rust/cpp2rust/pull/330/files |
| twitter:image | https://avatars.githubusercontent.com/u/44677774?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/44677774?s=400&v=4 |
| og:image:alt | Fixes #310
Furthermore, droppable types don't implement copy. |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/Cpp2Rust/cpp2rust git https://github.com/Cpp2Rust/cpp2rust.git |
| octolytics-dimension-user_id | 197474191 |
| octolytics-dimension-user_login | Cpp2Rust |
| octolytics-dimension-repository_id | 1183095779 |
| octolytics-dimension-repository_nwo | Cpp2Rust/cpp2rust |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1183095779 |
| octolytics-dimension-repository_network_root_nwo | Cpp2Rust/cpp2rust |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/Cpp2Rust/cpp2rust/pull/330/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FCpp2Rust%2Fcpp2rust%2Fpull%2F330%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FCpp2Rust%2Fcpp2rust%2Fpull%2F330%2Ffiles |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=Cpp2Rust%2Fcpp2rust |
| Reload | https://github.com/Cpp2Rust/cpp2rust/pull/330/files |
| Reload | https://github.com/Cpp2Rust/cpp2rust/pull/330/files |
| Reload | https://github.com/Cpp2Rust/cpp2rust/pull/330/files |
| Cpp2Rust | https://github.com/Cpp2Rust |
| cpp2rust | https://github.com/Cpp2Rust/cpp2rust |
| Code | https://github.com/Cpp2Rust/cpp2rust |
| Issues21 (21) | https://github.com/Cpp2Rust/cpp2rust/issues |
| Pull requests | https://github.com/Cpp2Rust/cpp2rust/pulls |
| Actions | https://github.com/Cpp2Rust/cpp2rust/actions |
| Security and quality | https://github.com/Cpp2Rust/cpp2rust/security |
| Insights | https://github.com/Cpp2Rust/cpp2rust/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2FCpp2Rust%2Fcpp2rust%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2FCpp2Rust%2Fcpp2rust%2Fissues%2Fnew%2Fchoose |
| nunoplopes | https://github.com/nunoplopes |
| Cpp2Rust:master | https://github.com/Cpp2Rust/cpp2rust/tree/master |
| lucic71:unsafe-dtor | https://github.com/lucic71/cpp2rust/tree/unsafe-dtor |
|
Conversation
0
| https://github.com/Cpp2Rust/cpp2rust/pull/330 |
|
Commits
6
| https://github.com/Cpp2Rust/cpp2rust/pull/330/commits |
|
Checks
9
| https://github.com/Cpp2Rust/cpp2rust/pull/330/checks |
|
Files changed
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files |
| Please reload this page | https://github.com/Cpp2Rust/cpp2rust/pull/330/files |
|
Translate destructors in unsafe
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#top |
|
Show all changes
6 commits
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files |
|
31763ec
Add drop trait in unsafe
lucic71 Sep 5, 2026
| https://github.com/Cpp2Rust/cpp2rust/pull/330/commits/31763eca509cafd759e34e0be392b944830c28ab |
|
2a78814
Use RAII handler for curr_function
lucic71 Sep 5, 2026
| https://github.com/Cpp2Rust/cpp2rust/pull/330/commits/2a7881467a03626a689b0d96807c26cc1146740c |
|
01c9e36
Update tests
lucic71 Sep 5, 2026
| https://github.com/Cpp2Rust/cpp2rust/pull/330/commits/01c9e3650b3af1ce1d3d3c803de658b9e81e8114 |
|
f2483a7
Simplify destructor checks
lucic71 Sep 5, 2026
| https://github.com/Cpp2Rust/cpp2rust/pull/330/commits/f2483a7bf0b17b93ad3bdbf188bda09c4c7ba4a5 |
|
ec271fd
Add more destructor tests
lucic71 Sep 5, 2026
| https://github.com/Cpp2Rust/cpp2rust/pull/330/commits/ec271fd713687efbaa31c8a2f42bbbae4aa43da6 |
|
1606196
clang format
lucic71 Sep 5, 2026
| https://github.com/Cpp2Rust/cpp2rust/pull/330/commits/1606196725a3fcaf6e3d8fe245fe86c9a66d1ac3 |
|
Clear filters
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files |
| Please reload this page | https://github.com/Cpp2Rust/cpp2rust/pull/330/files |
| Please reload this page | https://github.com/Cpp2Rust/cpp2rust/pull/330/files |
|
converter.cpp
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-87f37877b158de5c88f4955ff97b30bfebd1e30d15052089259f15f0bff6ad9d |
|
converter.h
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-f197587a9f5c9f534c7d3333f393b7c810acb16ba043b1c9421a93cad756c441 |
|
converter_lib.cpp
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-ae6bb4a4ff64f783629180d64e129a1fc7a90be17e4517fade98529ac46d183d |
|
converter_lib.h
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-b3cc6c632997b92f65174bc33690d182924f89ca0384f11ca755b178044f842d |
|
converter_refcount.cpp
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-086dd5a19fe4ea5036115bfcb7eb45e4917c9e89ef6adacdc381aa4bff56e98a |
|
destructor.cpp
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-75a0879449011b401f02c391424f4503f8577287c7f79a06bdd6d4c593bc260c |
|
destructor.rs
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-26db1ba51a7a68daef93e812fe20250bf9ce907f9b9fd5d09a5aa05bf244719e |
|
destructor.rs
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-4ad59b4433f9480110e97ddb88096ec27ee7b088de88835135157b1ab2848b36 |
| cpp2rust/converter/converter.cpp | https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-87f37877b158de5c88f4955ff97b30bfebd1e30d15052089259f15f0bff6ad9d |
|
View file
| https://github.com/lucic71/cpp2rust/blob/1606196725a3fcaf6e3d8fe245fe86c9a66d1ac3/cpp2rust/converter/converter.cpp |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/Cpp2Rust/cpp2rust/pull/330/{{ revealButtonHref }} |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-87f37877b158de5c88f4955ff97b30bfebd1e30d15052089259f15f0bff6ad9d |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-87f37877b158de5c88f4955ff97b30bfebd1e30d15052089259f15f0bff6ad9d |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-87f37877b158de5c88f4955ff97b30bfebd1e30d15052089259f15f0bff6ad9d |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-87f37877b158de5c88f4955ff97b30bfebd1e30d15052089259f15f0bff6ad9d |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-87f37877b158de5c88f4955ff97b30bfebd1e30d15052089259f15f0bff6ad9d |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-87f37877b158de5c88f4955ff97b30bfebd1e30d15052089259f15f0bff6ad9d |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-87f37877b158de5c88f4955ff97b30bfebd1e30d15052089259f15f0bff6ad9d |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-87f37877b158de5c88f4955ff97b30bfebd1e30d15052089259f15f0bff6ad9d |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-87f37877b158de5c88f4955ff97b30bfebd1e30d15052089259f15f0bff6ad9d |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-87f37877b158de5c88f4955ff97b30bfebd1e30d15052089259f15f0bff6ad9d |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-87f37877b158de5c88f4955ff97b30bfebd1e30d15052089259f15f0bff6ad9d |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-87f37877b158de5c88f4955ff97b30bfebd1e30d15052089259f15f0bff6ad9d |
| cpp2rust/converter/converter.h | https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-f197587a9f5c9f534c7d3333f393b7c810acb16ba043b1c9421a93cad756c441 |
|
View file
| https://github.com/lucic71/cpp2rust/blob/1606196725a3fcaf6e3d8fe245fe86c9a66d1ac3/cpp2rust/converter/converter.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/Cpp2Rust/cpp2rust/pull/330/{{ revealButtonHref }} |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-f197587a9f5c9f534c7d3333f393b7c810acb16ba043b1c9421a93cad756c441 |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-f197587a9f5c9f534c7d3333f393b7c810acb16ba043b1c9421a93cad756c441 |
| cpp2rust/converter/converter_lib.cpp | https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-ae6bb4a4ff64f783629180d64e129a1fc7a90be17e4517fade98529ac46d183d |
|
View file
| https://github.com/lucic71/cpp2rust/blob/1606196725a3fcaf6e3d8fe245fe86c9a66d1ac3/cpp2rust/converter/converter_lib.cpp |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/Cpp2Rust/cpp2rust/pull/330/{{ revealButtonHref }} |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-ae6bb4a4ff64f783629180d64e129a1fc7a90be17e4517fade98529ac46d183d |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-ae6bb4a4ff64f783629180d64e129a1fc7a90be17e4517fade98529ac46d183d |
| cpp2rust/converter/converter_lib.h | https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-b3cc6c632997b92f65174bc33690d182924f89ca0384f11ca755b178044f842d |
|
View file
| https://github.com/lucic71/cpp2rust/blob/1606196725a3fcaf6e3d8fe245fe86c9a66d1ac3/cpp2rust/converter/converter_lib.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/Cpp2Rust/cpp2rust/pull/330/{{ revealButtonHref }} |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-b3cc6c632997b92f65174bc33690d182924f89ca0384f11ca755b178044f842d |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-b3cc6c632997b92f65174bc33690d182924f89ca0384f11ca755b178044f842d |
| cpp2rust/converter/models/converter_refcount.cpp | https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-086dd5a19fe4ea5036115bfcb7eb45e4917c9e89ef6adacdc381aa4bff56e98a |
|
View file
| https://github.com/lucic71/cpp2rust/blob/1606196725a3fcaf6e3d8fe245fe86c9a66d1ac3/cpp2rust/converter/models/converter_refcount.cpp |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/Cpp2Rust/cpp2rust/pull/330/{{ revealButtonHref }} |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-086dd5a19fe4ea5036115bfcb7eb45e4917c9e89ef6adacdc381aa4bff56e98a |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-086dd5a19fe4ea5036115bfcb7eb45e4917c9e89ef6adacdc381aa4bff56e98a |
| tests/unit/destructor.cpp | https://github.com/Cpp2Rust/cpp2rust/pull/330/files#diff-75a0879449011b401f02c391424f4503f8577287c7f79a06bdd6d4c593bc260c |
|
View file
| https://github.com/lucic71/cpp2rust/blob/1606196725a3fcaf6e3d8fe245fe86c9a66d1ac3/tests/unit/destructor.cpp |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/Cpp2Rust/cpp2rust/pull/330/{{ revealButtonHref }} |
| Please reload this page | https://github.com/Cpp2Rust/cpp2rust/pull/330/files |
| Please reload this page | https://github.com/Cpp2Rust/cpp2rust/pull/330/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |