Skip to content

Conversation

@headius
Copy link
Member

@headius headius commented Mar 31, 2025

The standard set library does not warn along any path if an unused block is passed to initialize. We should do the same until the maintainers of the set gem decide that the warning should be added.

Fixes #8728

See ruby/set#41 for a report about the "missing" warning.

@headius headius added this to the JRuby 9.4.13.0 milestone Mar 31, 2025
@headius headius changed the base branch from master to jruby-9.4 March 31, 2025 17:12
The standard set library does not warn along any path if an unused
block is passed to initialize. We should do the same until the
maintainers of the set gem decide that the warning should be added.

Fixes jruby#8728

See ruby/set#41 for a report about the "missing" warning.
@headius headius force-pushed the set_init_block_warn branch from 24eb927 to 628d106 Compare March 31, 2025 17:12
@headius headius merged commit 34ff3e2 into jruby:jruby-9.4 Mar 31, 2025
95 of 96 checks passed
@headius headius deleted the set_init_block_warn branch March 31, 2025 17:35
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.

Incorrect warning: given block not used

1 participant