summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKouhei Yanagita <yanagi@shakenbu.org>2024-12-06 21:47:17 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-12-16 16:57:32 +0900
commiteef4e8a2c89f6c15096a43ea6783aa7994f1d0ca (patch)
treec0ec6a6f129d2c85229f47b66dae48b522ca6ade
parent5d97c14fec90b96f82d13299f578d16ee9996b3f (diff)
[DOC] Add Warning[:strict_unused_block] to NEWS
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12280
-rw-r--r--NEWS.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/NEWS.md b/NEWS.md
index 611956d337..22364b1047 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -384,6 +384,8 @@ details of the default gems or bundled gems.
* Passing a block to a method which doesn't use the passed block will show
a warning on verbose mode (`-w`).
+ In connection with this, a new `strict_unused_block` warning category was introduced.
+ Turn them on with `-W:strict_unused_block` or `Warning[:strict_unused_block] = true`.
[[Feature #15554]]
* Redefining some core methods that are specially optimized by the interpreter