| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:8815c096-5eab-61c7-a91a-2846dbb03ff0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C56A:F97BC:B7A2A9:FAD927:6A4D5336 |
| html-safe-nonce | 79975594dccd012810386bdbbb114dc4691df12a7704d664b0c929096fe50298 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTZBOkY5N0JDOkI3QTJBOTpGQUQ5Mjc6NkE0RDUzMzYiLCJ2aXNpdG9yX2lkIjoiODMwMTYzNDg1MzkwOTkxMDMyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1b466389b41de3b9b45139209e8f72f0d72e90072a55c36d1dd77b6e635242e5 |
| hovercard-subject-tag | pull_request:3979434048 |
| 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 | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/Cpp2Rust/cpp2rust/225/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/7d3306f93625cac496f0a3c76e7d4fcbcad4a07a5007ec7968da66f3018226bf/Cpp2Rust/cpp2rust/pull/225 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7d3306f93625cac496f0a3c76e7d4fcbcad4a07a5007ec7968da66f3018226bf/Cpp2Rust/cpp2rust/pull/225 |
| og:image:alt | ByteRepr::to_bytes and ByteRepr::from_bytes are implemented using the new PtrRegistry. PtrRegistry is a global collection that keeps mappings between Ptr and [base, base + byte_len]. The right side... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lucic71 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-cache |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/Cpp2Rust/cpp2rust/pull/225#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FCpp2Rust%2Fcpp2rust%2Fpull%2F225 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| 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 |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | 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/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FCpp2Rust%2Fcpp2rust%2Fpull%2F225 |
|
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=Cpp2Rust%2Fcpp2rust |
| Reload | https://github.com/Cpp2Rust/cpp2rust/pull/225 |
| Reload | https://github.com/Cpp2Rust/cpp2rust/pull/225 |
| Reload | https://github.com/Cpp2Rust/cpp2rust/pull/225 |
| Please reload this page | https://github.com/Cpp2Rust/cpp2rust/pull/225 |
|
Cpp2Rust
| https://github.com/Cpp2Rust |
| cpp2rust | https://github.com/Cpp2Rust/cpp2rust |
|
Notifications
| https://github.com/login?return_to=%2FCpp2Rust%2Fcpp2rust |
|
Fork
5
| https://github.com/login?return_to=%2FCpp2Rust%2Fcpp2rust |
|
Star
65
| https://github.com/login?return_to=%2FCpp2Rust%2Fcpp2rust |
|
Code
| https://github.com/Cpp2Rust/cpp2rust |
|
Issues
6
| https://github.com/Cpp2Rust/cpp2rust/issues |
|
Pull requests
14
| https://github.com/Cpp2Rust/cpp2rust/pulls |
|
Actions
| https://github.com/Cpp2Rust/cpp2rust/actions |
|
Security and quality
0
| https://github.com/Cpp2Rust/cpp2rust/security |
|
Insights
| https://github.com/Cpp2Rust/cpp2rust/pulse |
|
Code
| https://github.com/Cpp2Rust/cpp2rust |
|
Issues
| 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/pulse |
| lucic71 | https://github.com/lucic71 |
| Cpp2Rust:master | https://github.com/Cpp2Rust/cpp2rust/tree/master |
| lucic71:ptr-byterepr | https://github.com/lucic71/cpp2rust/tree/ptr-byterepr |
| Conversation | https://github.com/Cpp2Rust/cpp2rust/pull/225 |
| Commits15 (15) | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits |
| Checks | https://github.com/Cpp2Rust/cpp2rust/pull/225/checks |
| Files changed | https://github.com/Cpp2Rust/cpp2rust/pull/225/files |
| Add ByteRepr for Ptr | https://github.com/Cpp2Rust/cpp2rust/pull/225#top |
| lucic71 | https://github.com/lucic71 |
| Cpp2Rust:master | https://github.com/Cpp2Rust/cpp2rust/tree/master |
| lucic71:ptr-byterepr | https://github.com/lucic71/cpp2rust/tree/ptr-byterepr |
|
| https://github.com/lucic71 |
| lucic71 | https://github.com/lucic71 |
| Jul 2, 2026 | https://github.com/Cpp2Rust/cpp2rust/pull/225#issue-4795807529 |
| Please reload this page | https://github.com/Cpp2Rust/cpp2rust/pull/225 |
| @nunoplopes | https://github.com/nunoplopes |
| Please reload this page | https://github.com/Cpp2Rust/cpp2rust/pull/225 |
| lucic71 | https://github.com/lucic71 |
| July 2, 2026 16:08 | https://github.com/Cpp2Rust/cpp2rust/pull/225#commits-pushed-e75e87d |
|
| https://github.com/lucic71 |
| Add dummy ByteRepr for opaque structs | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/e75e87d03750bf0889632c409fd1562fc025ed5b |
| e75e87d | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/e75e87d03750bf0889632c409fd1562fc025ed5b |
|
| https://github.com/lucic71 |
| Add ByteRepr for Ptr and AnyPtr | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/7e10a1d0f17bdcd5c30d48c0e6d3d27d6f709199 |
| 7e10a1d | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/7e10a1d0f17bdcd5c30d48c0e6d3d27d6f709199 |
|
| https://github.com/lucic71 |
| Bail-out early if reinterpreted pointer is null | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/302a325728f731efcc6114bf88dc11fb3ce309c2 |
| 302a325 | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/302a325728f731efcc6114bf88dc11fb3ce309c2 |
|
| https://github.com/lucic71 |
| Allow comparison-by-address of void pointers | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/414fc4e5d0b3c512a4f5ba5f2be5d81c4fd4d4ad |
| 414fc4e | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/414fc4e5d0b3c512a4f5ba5f2be5d81c4fd4d4ad |
|
| https://github.com/lucic71 |
| Update tests | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/500600a225bfc50b429134c0809771ac393f8b8f |
| 500600a | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/500600a225bfc50b429134c0809771ac393f8b8f |
|
| https://github.com/lucic71 |
| cargo fmt | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/ba3bdc7d96bc014f5467cc2c33c1fd171ea95c88 |
| ba3bdc7 | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/ba3bdc7d96bc014f5467cc2c33c1fd171ea95c88 |
| https://github.com/lucic71 |
| lucic71 | https://github.com/lucic71 |
| July 2, 2026 15:17 | https://github.com/Cpp2Rust/cpp2rust/pull/225#event-27486504941 |
| lucic71 | https://github.com/lucic71 |
| July 2, 2026 16:25 | https://github.com/Cpp2Rust/cpp2rust/pull/225#commits-pushed-3288f90 |
|
| https://github.com/lucic71 |
| cargo fmt | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/3288f90e8c681865c95c65dae16f1cbbd3679f3d |
| 3288f90 | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/3288f90e8c681865c95c65dae16f1cbbd3679f3d |
|
| https://github.com/lucic71 |
| Add arrayEndA == objectStartB test | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/32d9d9c95ceb0d97989f74512e85cf8220c4dda5 |
| 32d9d9c | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/32d9d9c95ceb0d97989f74512e85cf8220c4dda5 |
|
| https://github.com/lucic71 |
| Add null pointer serialization/deserialization test | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/bd4141415c0f82f9dd534abd7bd5ce7db4534949 |
| bd41414 | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/bd4141415c0f82f9dd534abd7bd5ce7db4534949 |
|
| https://github.com/lucic71 |
| Add ub tests for int to pointer conversion | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/43f686d136c5c8bd620164e2019b6e09d0019afb |
| 43f686d | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/43f686d136c5c8bd620164e2019b6e09d0019afb |
|
| https://github.com/lucic71 |
| Add is_dangling | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/41fa40b96d4f169314c0427c8d7733074483d54e |
| 41fa40b | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/41fa40b96d4f169314c0427c8d7733074483d54e |
|
| https://github.com/lucic71 |
| Evict dead entries on PtrRegistry::put | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/c11115114b6def9197cf7f2f83ca2a96102af6f7 |
| c111151 | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/c11115114b6def9197cf7f2f83ca2a96102af6f7 |
|
| https://github.com/lucic71 |
| Add pointer to struct serialization test | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/49bbc5b5c3fffd28efa67246e570d26d48660c10 |
| 49bbc5b | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/49bbc5b5c3fffd28efa67246e570d26d48660c10 |
|
| https://github.com/lucic71 |
| Add c_byte_offset and c_byte_len | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/299831f6497976fd687490c254bf089ee3a2460f |
| 299831f | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/299831f6497976fd687490c254bf089ee3a2460f |
|
| https://github.com/lucic71 |
| Rename swept_len to evicted_len | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/2b147de1e09c9cdd14f2787fb9d2c8d32d99145d |
| 2b147de | https://github.com/Cpp2Rust/cpp2rust/pull/225/commits/2b147de1e09c9cdd14f2787fb9d2c8d32d99145d |
| https://github.com/lucic71 |
| lucic71 | https://github.com/lucic71 |
| July 3, 2026 21:22 | https://github.com/Cpp2Rust/cpp2rust/pull/225#event-27544187848 |
| https://github.com/nunoplopes |
| nunoplopes | https://github.com/nunoplopes |
| Jul 5, 2026 | https://github.com/Cpp2Rust/cpp2rust/pull/225#issuecomment-4886454079 |
| Please reload this page | https://github.com/Cpp2Rust/cpp2rust/pull/225 |
| https://github.com/nunoplopes |
| nunoplopes | https://github.com/nunoplopes |
|
Jul 5, 2026
| https://github.com/Cpp2Rust/cpp2rust/pull/225#pullrequestreview-4631502032 |
|
View reviewed changes
| https://github.com/Cpp2Rust/cpp2rust/pull/225/files/2b147de1e09c9cdd14f2787fb9d2c8d32d99145d |
| libcc2rs/src/rc.rs | https://github.com/Cpp2Rust/cpp2rust/pull/225/files/2b147de1e09c9cdd14f2787fb9d2c8d32d99145d#diff-c6af5997c81745c6c5e9f2bd1fe6afaeb55442198621078c4c1126492c4d4a80 |
| nunoplopes | https://github.com/nunoplopes |
| Jul 5, 2026 | https://github.com/Cpp2Rust/cpp2rust/pull/225#discussion_r3525099473 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/Cpp2Rust/cpp2rust/pull/225 |
| https://github.com/nunoplopes |
| nunoplopes | https://github.com/nunoplopes |
| Jul 5, 2026 | https://github.com/Cpp2Rust/cpp2rust/pull/225#issuecomment-4886469852 |
| Please reload this page | https://github.com/Cpp2Rust/cpp2rust/pull/225 |
| https://github.com/lucic71 |
| lucic71 | https://github.com/lucic71 |
| Jul 6, 2026 | https://github.com/Cpp2Rust/cpp2rust/pull/225#issuecomment-4891372372 |
| Please reload this page | https://github.com/Cpp2Rust/cpp2rust/pull/225 |
| https://github.com/lucic71 |
| lucic71 | https://github.com/lucic71 |
| Jul 6, 2026 | https://github.com/Cpp2Rust/cpp2rust/pull/225#issuecomment-4891423280 |
| Please reload this page | https://github.com/Cpp2Rust/cpp2rust/pull/225 |
| @nunoplopes | https://github.com/nunoplopes |
| Please reload this page | https://github.com/Cpp2Rust/cpp2rust/pull/225 |
| https://github.co/hiddenchars |
| https://github.com/Cpp2Rust/cpp2rust/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FCpp2Rust%2Fcpp2rust%2Fpull%2F225 |
|
| https://github.com/nunoplopes |
|
nunoplopes
| https://github.com/nunoplopes |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/225/files/2b147de1e09c9cdd14f2787fb9d2c8d32d99145d |
| Please reload this page | https://github.com/Cpp2Rust/cpp2rust/pull/225 |
|
| https://github.com/lucic71 |
|
| https://github.com/nunoplopes |
|
| 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 |