Title: Replace `compiler::source` module with `ruff_source_file` by ShaharNaveh · Pull Request #6016 · RustPython/RustPython · GitHub
Open Graph Title: Replace `compiler::source` module with `ruff_source_file` by ShaharNaveh · Pull Request #6016 · RustPython/RustPython
X Title: Replace `compiler::source` module with `ruff_source_file` by ShaharNaveh · Pull Request #6016 · RustPython/RustPython
Description: I saw that compiler/source was mainly re-exporting items from ruff_source_file, so I replaced it with the upstream ruff_source_file::SourceFile which is a bit better implementation of what we have currently as it's uses Arc internally so it's practically free to clone & replaces the need for a dedicated SourceCodeOwned as SourceFile is already owned. This PR contains a lot of noise as I renamed: source_code -> source_file SourceCode -> SourceFile SourceCodeOwned -> SourceFile Feel free to close this PR if this is an unwanted change. Summary by CodeRabbit Refactor Unified the handling of source code representation across the compiler and VM by replacing the previous type with a new, consistent type throughout all relevant modules and interfaces. Updated numerous method and function signatures to accept the new source type, improving maintainability and consistency. Deprecated and removed references to legacy source handling components. Adjusted dependencies to reflect the new approach and removed obsolete packages. Chores Reformatted configuration files and cleaned up commented-out or unused dependencies.
Open Graph Description: I saw that compiler/source was mainly re-exporting items from ruff_source_file, so I replaced it with the upstream ruff_source_file::SourceFile which is a bit better implementation of what we have ...
X Description: I saw that compiler/source was mainly re-exporting items from ruff_source_file, so I replaced it with the upstream ruff_source_file::SourceFile which is a bit better implementation of what we have ...
Opengraph URL: https://github.com/RustPython/RustPython/pull/6016
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:a7f78ccd-1a5d-c754-350a-676468266255 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 8C56:319547:1FC1E16:2956641:696B476B |
| html-safe-nonce | 8e6368b4ff6a0fa6a9bdf3b7065ad9aa522a090674438c0d6a5baa2ff1848381 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzU2OjMxOTU0NzoxRkMxRTE2OjI5NTY2NDE6Njk2QjQ3NkIiLCJ2aXNpdG9yX2lkIjoiMzYwMTczNDk4NzUwNjQ2ODcxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 158015dbdcae277a3d484dad77cb387a73a7e438ffd8b9d1f0d5d7abc6ee599b |
| hovercard-subject-tag | pull_request:2683258526 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/6016/checks |
| 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 | I saw that compiler/source was mainly re-exporting items from ruff_source_file, so I replaced it with the upstream ruff_source_file::SourceFile which is a bit better implementation of what we have ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-cache |
| 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 full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width