Skip to content

Fix map difference union optimization#15319

Merged
josevalim merged 1 commit intoelixir-lang:mainfrom
gldubc:fix-bug
Apr 28, 2026
Merged

Fix map difference union optimization#15319
josevalim merged 1 commit intoelixir-lang:mainfrom
gldubc:fix-bug

Conversation

@gldubc
Copy link
Copy Markdown
Member

@gldubc gldubc commented Apr 28, 2026

This disables the :union case of the single-key open-map difference optimization.

The optimization could build an invalid union literal and make double negation leave extra maps. A regression covers the redundant empty_map case.

@gldubc gldubc marked this pull request as ready for review April 28, 2026 14:53
@josevalim josevalim merged commit eb8bbc9 into elixir-lang:main Apr 28, 2026
15 checks passed
@josevalim
Copy link
Copy Markdown
Member

💚 💙 💜 💛 ❤️

@josevalim josevalim deleted the fix-bug branch April 28, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants