Skip to content

[fix] duplicate hash key literal removal#7882

Merged
kares merged 3 commits intojruby:masterfrom
kares:error-prone_left-over
Aug 17, 2023
Merged

[fix] duplicate hash key literal removal#7882
kares merged 3 commits intojruby:masterfrom
kares:error-prone_left-over

Conversation

@kares
Copy link
Member

@kares kares commented Aug 11, 2023

This PR is a follow-up on #7623, namely the detected collection usage issue: 0224d5d

While fixing the collection removal (type) issue I discovered that the actual AST node removal on duplicate hash keys is problematic (there's a need to evaluate the RHS even despite it's end result being thrown away), so the actual removal is still NOT happening.

**The PR still fixes the duplicate line reporting - will now point to the correct (duplicate) location as does MRI! **

@kares kares force-pushed the error-prone_left-over branch 2 times, most recently from f3240f8 to afec0cc Compare August 11, 2023 12:54
@kares kares marked this pull request as ready for review August 14, 2023 10:55
@kares kares added this to the JRuby 9.4.4.0 milestone Aug 14, 2023
@kares kares force-pushed the error-prone_left-over branch from d8a3eb5 to 637d2d8 Compare August 17, 2023 07:35
@kares kares merged commit 105df33 into jruby:master Aug 17, 2023
@kares kares deleted the error-prone_left-over branch August 17, 2023 13:32
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