Merge pull request #51856 from yahonda/restore_warning_condition_for_ruby34

Restore unused block warnings condition for Ruby 3.4
This commit is contained in:
Yasuo Honda 2024-05-21 08:46:51 +09:00 committed by GitHub
commit 692f25a925
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -14,10 +14,6 @@ class WarningError < StandardError; end
# Expected non-verbose warning emitted by Rails.
/Ignoring .*\.yml because it has expired/,
/Failed to validate the schema cache because/,
# Ref: https://bugs.ruby-lang.org/issues/15554
# This new Ruby 3.4 warning is still being fined tuned to reduce false positives
/the block passed to/,
)
SUPPRESSED_WARNINGS = Regexp.union(