Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Cpp2Rust
cpp2rust
Repository navigation
Code
Issues
15
(15)
Pull requests
3
(3)
Actions
Security and quality
Insights
More
items
Handle pointer of union members
- #209
#209
Closed
lucic71
wants to merge 20 commits into
Cpp2Rust:master
Cpp2Rust/cpp2rust:master
from
lucic71:accessor-union
lucic71/cpp2rust:accessor-union
Copy head branch name to clipboard
Conversation
Commits
20
(20)
Checks
Files changed
Closed
Handle pointer of union members
#209
lucic71
wants to merge 20 commits into
Cpp2Rust:master
Cpp2Rust/cpp2rust:master
from
lucic71:accessor-union
lucic71/cpp2rust:accessor-union
Copy head branch name to clipboard
Commits
Commits on Jun 25, 2026
Use C size when size_of diverges between C and Rust
lucic71
committed
0dca34e
View commit details
Copy full SHA for 0dca34e
Browse repository at this point
Add byte_size in ByteRepr to capture C size
lucic71
committed
8fa8bec
View commit details
Copy full SHA for 8fa8bec
Browse repository at this point
Delete unused function
lucic71
committed
a07a40f
View commit details
Copy full SHA for a07a40f
Browse repository at this point
Add correct from_bytes type
lucic71
committed
7db5002
View commit details
Copy full SHA for 7db5002
Browse repository at this point
Update tests
lucic71
committed
c66a712
View commit details
Copy full SHA for c66a712
Browse repository at this point
Add panic default implementations
lucic71
committed
5af65da
View commit details
Copy full SHA for 5af65da
Browse repository at this point
Implement byte_size for primitives
lucic71
committed
8084fc9
View commit details
Copy full SHA for 8084fc9
Browse repository at this point
Allow enums to have byterepr
lucic71
committed
532c0b5
View commit details
Copy full SHA for 532c0b5
Browse repository at this point
Don't add ByteRepr for system header types
lucic71
committed
0573f9c
View commit details
Copy full SHA for 0573f9c
Browse repository at this point
Ignore unions in ByteRepr for now
lucic71
committed
32d916a
View commit details
Copy full SHA for 32d916a
Browse repository at this point
Update tests
lucic71
committed
96cd270
View commit details
Copy full SHA for 96cd270
Browse repository at this point
Memcpy a poitner to a struct through ErasedPtr
lucic71
committed
3402042
View commit details
Copy full SHA for 3402042
Browse repository at this point
Add memcpy_struct_bytes test
lucic71
committed
fb7f030
View commit details
Copy full SHA for fb7f030
Browse repository at this point
Update tests
lucic71
committed
e4bb83e
View commit details
Copy full SHA for e4bb83e
Browse repository at this point
Commits on Jun 29, 2026
Merge branch 'master' into anyptr-reinterpreted
lucic71
committed
d979745
View commit details
Copy full SHA for d979745
Browse repository at this point
Trigger CI
lucic71
committed
48d6908
View commit details
Copy full SHA for 48d6908
Browse repository at this point
Handle array to pointer decay in union member
lucic71
committed
b7feb0b
View commit details
Copy full SHA for b7feb0b
Browse repository at this point
Handle explicit cast of union member
lucic71
committed
e84c170
View commit details
Copy full SHA for e84c170
Browse repository at this point
Handle Ptr to array in union accessor
lucic71
committed
ee5388c
View commit details
Copy full SHA for ee5388c
Browse repository at this point
Update tests
lucic71
committed
4514912
View commit details
Copy full SHA for 4514912
Browse repository at this point
You can’t perform that action at this time.