-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add simple renames - WIP #46
Conversation
Addressing [list from NEWS.md](#20 (comment)).
@@ -394,6 +394,34 @@ const renames = [ | |||
@add_rename iteratoreltype IteratorEltype v"0.7.0-DEV.3309" | |||
@add_rename nb_available bytesavailable v"0.7.0-DEV.3477" | |||
@add_rename broadcast_indices broadcast_axes v"0.7.0-DEV.4936" | |||
@add_rename Base.Test Test v"0.7.0-alpha" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already taken care of
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I will see why it didn't trigger on the depoexercism.jl FC PRs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just added it earlier today.
@add_rename Random.dSFMT Random.DSFMT v"0.7.0-alpha" | ||
@add_rename gc GC.gc v"0.7.0-alpha" | ||
@add_rename gc_enable GC.enable v"0.7.0-alpha" | ||
@add_rename Base.@gc_preserve GC.@preserve v"0.7.0-alpha" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't work. This check looks for identifiers.
@add_rename Base.@gc_preserve GC.@preserve v"0.7.0-alpha" | ||
@add_rename LinSpace LinRange v"0.7.0-alpha" | ||
@add_rename endof lastindex v"0.7.0-alpha" | ||
@add_rename DateTime() DateTime(1) v"0.7.0-alpha" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, this is not an identifier. You can write a custom AST matcher instead.
@add_rename linearindices LinearIndices v"0.7.0-alpha" | ||
@add_rename LinAlg.fillslots! LinearAlgebra.fillstored! v"0.7.0-alpha" | ||
@add_rename cfunction @cfunction v"0.7.0-alpha" | ||
@add_rename GMP.gmp_version GMP.version v"0.7.0-alpha" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs support for renames in other modules, which this doesn't provide. Remove these for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments. Ideally also look up the correct version number for each deprecation.
Addressing list from NEWS.md.