| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f7be20d5-5d46-aea1-6b3c-949e7fd516f4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9630:28D69A:7D7F36:A5E3E2:6A5B9E4A |
| html-safe-nonce | a304230d7846fbfbd029c67cede6b7b601abc08d570c062f61d7116f90e7d716 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjMwOjI4RDY5QTo3RDdGMzY6QTVFM0UyOjZBNUI5RTRBIiwidmlzaXRvcl9pZCI6IjY4NTY4MTA5MzA3MzMwMzA5ODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4be18717b4ff52c5842fc135cbaa74168758c42aa8f07de090ec785952a7ff95 |
| hovercard-subject-tag | pull_request:3435962018 |
| 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/RustPython/RustPython/pull/7489/files |
| twitter:image | https://avatars.githubusercontent.com/u/50263213?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/50263213?s=400&v=4 |
| og:image:alt | Reason for creating a new crate for this is because rustpython-derive-impl has rustpython-compiler as a dependency, so it created a circular dependency:/
Summary by CodeRabbit
New Features
Adde... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/RustPython/RustPython/pull/7489/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F7489%2Ffiles |
| 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/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/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/enterprise/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%2FRustPython%2FRustPython%2Fpull%2F7489%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=RustPython%2FRustPython |
| Reload | https://github.com/RustPython/RustPython/pull/7489/files |
| Reload | https://github.com/RustPython/RustPython/pull/7489/files |
| Reload | https://github.com/RustPython/RustPython/pull/7489/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7489/files |
|
RustPython
| https://github.com/RustPython |
| RustPython | https://github.com/RustPython/RustPython |
|
Notifications
| https://github.com/login?return_to=%2FRustPython%2FRustPython |
|
Fork
1.5k
| https://github.com/login?return_to=%2FRustPython%2FRustPython |
|
Star
22.2k
| https://github.com/login?return_to=%2FRustPython%2FRustPython |
|
Code
| https://github.com/RustPython/RustPython |
|
Issues
291
| https://github.com/RustPython/RustPython/issues |
|
Pull requests
105
| https://github.com/RustPython/RustPython/pulls |
|
Discussions
| https://github.com/RustPython/RustPython/discussions |
|
Actions
| https://github.com/RustPython/RustPython/actions |
|
Projects
| https://github.com/RustPython/RustPython/projects |
|
Models
| https://github.com/RustPython/RustPython/models |
|
Wiki
| https://github.com/RustPython/RustPython/wiki |
|
Security and quality
0
| https://github.com/RustPython/RustPython/security |
|
Insights
| https://github.com/RustPython/RustPython/pulse |
|
Code
| https://github.com/RustPython/RustPython |
|
Issues
| https://github.com/RustPython/RustPython/issues |
|
Pull requests
| https://github.com/RustPython/RustPython/pulls |
|
Discussions
| https://github.com/RustPython/RustPython/discussions |
|
Actions
| https://github.com/RustPython/RustPython/actions |
|
Projects
| https://github.com/RustPython/RustPython/projects |
|
Models
| https://github.com/RustPython/RustPython/models |
|
Wiki
| https://github.com/RustPython/RustPython/wiki |
|
Security and quality
| https://github.com/RustPython/RustPython/security |
|
Insights
| https://github.com/RustPython/RustPython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2FRustPython%2FRustPython%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=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose |
| ShaharNaveh | https://github.com/ShaharNaveh |
| RustPython:main | https://github.com/RustPython/RustPython/tree/main |
| ShaharNaveh:macro-newtype-oparg | https://github.com/ShaharNaveh/RustPython/tree/macro-newtype-oparg |
|
Conversation
26
| https://github.com/RustPython/RustPython/pull/7489 |
|
Commits
14
| https://github.com/RustPython/RustPython/pull/7489/commits |
|
Checks
17
| https://github.com/RustPython/RustPython/pull/7489/checks |
|
Files changed
| https://github.com/RustPython/RustPython/pull/7489/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7489/files |
|
#[newtype_oparg] derive macro
| https://github.com/RustPython/RustPython/pull/7489/files#top |
|
Show all changes
14 commits
| https://github.com/RustPython/RustPython/pull/7489/files |
|
e599382
Basic struct support
ShaharNaveh Mar 19, 2026
| https://github.com/RustPython/RustPython/pull/7489/commits/e599382ac4b50d4f98e76b86dc0b345c96370e88 |
|
b60f972
Base enum support
ShaharNaveh Mar 23, 2026
| https://github.com/RustPython/RustPython/pull/7489/commits/b60f97249df025eab9ab06119c61f9a62c585c44 |
|
936a079
Modify code for new macro
ShaharNaveh Mar 23, 2026
| https://github.com/RustPython/RustPython/pull/7489/commits/936a0791d9b718dc49f17318596d447b1156720f |
|
94d66dd
No need for full feature
ShaharNaveh Mar 23, 2026
| https://github.com/RustPython/RustPython/pull/7489/commits/94d66dd1550f702b347afb56eaee62e7ffae5403 |
|
f5c2f9b
Remove debug code
ShaharNaveh Mar 23, 2026
| https://github.com/RustPython/RustPython/pull/7489/commits/f5c2f9b4f0291b14dc37f2361fc9f61b81cc37e5 |
|
9fbc6d3
Impl hash
ShaharNaveh Mar 23, 2026
| https://github.com/RustPython/RustPython/pull/7489/commits/9fbc6d30e9e7bfcd62a20507fad9f3736d2b8b7e |
|
49d2fb6
Merge remote-tracking branch 'upstream/main' into macro-newtype-oparg
ShaharNaveh Mar 24, 2026
| https://github.com/RustPython/RustPython/pull/7489/commits/49d2fb6cbf76ce7a24ad7576096f60977d3cc0b7 |
|
f7b11b6
syn full feature
ShaharNaveh Mar 24, 2026
| https://github.com/RustPython/RustPython/pull/7489/commits/f7b11b65d0d1e92c84e27f1dc4754ee58f8937e0 |
|
f21d855
Remove unwrap
ShaharNaveh Mar 24, 2026
| https://github.com/RustPython/RustPython/pull/7489/commits/f21d855f77e1cdfbfe6c0f7ad0532f74ee2d638c |
|
77eae15
Use `TryFrom`
ShaharNaveh Mar 24, 2026
| https://github.com/RustPython/RustPython/pull/7489/commits/77eae154111f8174dcbb9b3ae79870f3304a7252 |
|
4d6c725
Convert `ConvertValueOparg` to new macro
ShaharNaveh Mar 24, 2026
| https://github.com/RustPython/RustPython/pull/7489/commits/4d6c72573553bff1761d343b41318f02e1ee9990 |
|
c702fbe
Fix bug where `catch_all` is not the last element
ShaharNaveh Mar 24, 2026
| https://github.com/RustPython/RustPython/pull/7489/commits/c702fbefb9c7e396d39d03c627057a57fc5dccf8 |
|
796b61c
Don't match on 255
ShaharNaveh Mar 24, 2026
| https://github.com/RustPython/RustPython/pull/7489/commits/796b61c955701a55f9a6f8ad2b85d0ce6d462def |
|
9691476
Validate `catch_all` variant drfinition
ShaharNaveh Mar 24, 2026
| https://github.com/RustPython/RustPython/pull/7489/commits/9691476d2ee059d4f61993e44cff18ecd1c08f58 |
|
Clear filters
| https://github.com/RustPython/RustPython/pull/7489/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7489/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7489/files |
|
Cargo.lock
| https://github.com/RustPython/RustPython/pull/7489/files#diff-13ee4b2252c9e516a0547f2891aa2105c3ca71c6d7a1e682c69be97998dfc87e |
|
Cargo.toml
| https://github.com/RustPython/RustPython/pull/7489/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542 |
|
Cargo.toml
| https://github.com/RustPython/RustPython/pull/7489/files#diff-1fe804900faa12cec55c1e33bc78586f6e99da40d949d59a72e9a92f18e3c093 |
|
oparg.rs
| https://github.com/RustPython/RustPython/pull/7489/files#diff-4046b0673a11dc9e3309fe8759e2ce2981cd9881b6ce60d6b52280e5e1777d09 |
|
Cargo.toml
| https://github.com/RustPython/RustPython/pull/7489/files#diff-e38f329f4be3e9402b375a6c11efbbe307fb87d2f4334658dd01b311148306f5 |
|
lib.rs
| https://github.com/RustPython/RustPython/pull/7489/files#diff-974a456d61886f1ba25a8069f2a1da28542b7f887c447eab1b4bfde741f461e6 |
|
newtype_oparg.rs
| https://github.com/RustPython/RustPython/pull/7489/files#diff-a63b20672b6e405531a9cc15b10b4000926653a01263eca5c19b67faacb8a3d5 |
|
frame.rs
| https://github.com/RustPython/RustPython/pull/7489/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb |
|
other.rs
| https://github.com/RustPython/RustPython/pull/7489/files#diff-806d220bd2c455ce464196b7e94cc3ebca24c9c18456f488e5bc47b8250eae01 |
| Cargo.lock | https://github.com/RustPython/RustPython/pull/7489/files#diff-13ee4b2252c9e516a0547f2891aa2105c3ca71c6d7a1e682c69be97998dfc87e |
|
View file
| https://github.com/ShaharNaveh/RustPython/blob/9691476d2ee059d4f61993e44cff18ecd1c08f58/Cargo.lock |
|
Open in desktop
| https://desktop.github.com |
| how customized files appear on GitHub | https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7489/files |
| Cargo.toml | https://github.com/RustPython/RustPython/pull/7489/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542 |
|
View file
| https://github.com/ShaharNaveh/RustPython/blob/9691476d2ee059d4f61993e44cff18ecd1c08f58/Cargo.toml |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/7489/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/7489/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542 |
|
| https://github.com/RustPython/RustPython/pull/7489/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542 |
| crates/compiler-core/Cargo.toml | https://github.com/RustPython/RustPython/pull/7489/files#diff-1fe804900faa12cec55c1e33bc78586f6e99da40d949d59a72e9a92f18e3c093 |
|
View file
| https://github.com/ShaharNaveh/RustPython/blob/9691476d2ee059d4f61993e44cff18ecd1c08f58/crates/compiler-core/Cargo.toml |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/7489/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/7489/files#diff-1fe804900faa12cec55c1e33bc78586f6e99da40d949d59a72e9a92f18e3c093 |
|
| https://github.com/RustPython/RustPython/pull/7489/files#diff-1fe804900faa12cec55c1e33bc78586f6e99da40d949d59a72e9a92f18e3c093 |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7489/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7489/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 |