Skip to content
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

Closed
wants to merge 1 commit into from
Closed

Add simple renames - WIP #46

wants to merge 1 commit into from

Conversation

miguelraz
Copy link

Addressing list from NEWS.md.

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"
Copy link
Member

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

Copy link
Author

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.

Copy link
Member

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"
Copy link
Member

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"
Copy link
Member

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"
Copy link
Member

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.

Copy link
Member

@Keno Keno left a 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.

@Keno Keno closed this Jun 29, 2018
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