Skip to content

Conversation

@kachick
Copy link
Member

@kachick kachick commented Nov 1, 2019

ticket: https://bugs.ruby-lang.org/issues/13083

This revert #1506 and warns for now.

@rafaelfranca How about this?

Copy link
Contributor

@rafaelfranca rafaelfranca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Thank you so much for working on it @kachick

/backref/ =~ 'backref'
# must match here, but not in a separate method, e.g., assert_send,
# to check if $~ is affected or not.
assert_equal(false, //.match?(nil))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we assert the warning?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's already checked in specs above.

Copy link
Member

@eregon eregon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

kachick added a commit to kachick/ruby that referenced this pull request Nov 3, 2019
… an error:Update re.c


ruby#2637 (comment)

Co-Authored-By: Eugene Kenny <elkenny@gmail.com>
@kachick kachick force-pushed the deprecation-match-with-nil branch from bb7f955 to d20d9ce Compare November 3, 2019 00:26
@eregon eregon merged commit 31110d8 into ruby:master Nov 3, 2019
@eregon eregon self-assigned this Nov 3, 2019
@eregon
Copy link
Member

eregon commented Nov 3, 2019

Merged and NEWS entry updated in fbacfe6, thanks!

@kachick
Copy link
Member Author

kachick commented Nov 3, 2019

Thank you!

@kachick kachick deleted the deprecation-match-with-nil branch November 3, 2019 11:47
eregon pushed a commit to ruby/spec that referenced this pull request Nov 30, 2019
headius pushed a commit to headius/spec that referenced this pull request Oct 31, 2024
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.

4 participants