Skip to content

Recognize Core.declare_const in get_lhs_rhs #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xal-0
Copy link

@xal-0 xal-0 commented Apr 30, 2025

This is the minimal change to get Revise working with JuliaLang/julia#57470.

Comparison of lowering of const foo = 1:

version
1.11 Expr(:const, :foo), Expr(:(=), :foo, 1) (with edge 2 -> 1)
1.12 Expr(:const, :foo, 1)
1.13 Expr(:call, Core.declare_const, :foo, 1)

This is the minimal change to get Revise working with JuliaLang/julia#57470.

Comparison of lowering of `const foo = 1`:
  1.11: Expr(:const, :foo), Expr(:(=), :foo, 1) (with edge 2 -> 1)
  1.12: Expr(:const, :foo, 1)
  1.13: Expr(:call, Core.declare_const, :foo, 1)
@aviatesk
Copy link
Member

aviatesk commented May 5, 2025

It looks like this is required after JuliaLang/julia#58187?

Copy link

codecov bot commented May 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.86%. Comparing base (550a2a4) to head (c5e5c97).
Report is 40 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #129       +/-   ##
===========================================
- Coverage   88.69%   76.86%   -11.83%     
===========================================
  Files           6        6               
  Lines        1442     1526       +84     
===========================================
- Hits         1279     1173      -106     
- Misses        163      353      +190     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@xal-0
Copy link
Author

xal-0 commented May 5, 2025

It looks like this is required after JuliaLang/julia#58187?

Issue autocomplete strikes again. That's the one I intended to link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants