Branch: refs/heads/yves/deprecated_subcategories_silence_autodie_warnings
Home: https://github.com/Perl/perl5
Commit: 496b887e44d9a4365be18b73137d70b6eb83dde8
https://github.com/Perl/perl5/commit/496b887e44d9a4365be18b73137d70b6eb83dde8
Author: Yves Orton <[email protected]>
Date: 2023-02-25 (Sat, 25 Feb 2023)
Changed paths:
M lib/warnings.pm
M regen/warnings.pl
M toke.c
M warnings.h
Log Message:
-----------
warnings.pm - support deprecated::smartmatch category
Currently we seem to lack a way to have a subcategory under deprecated.
It seems reasonable to me that people might want to disable a specific
subcategory warning while leaving the rest in place. This patch allows
that. Note that both
no warnings "deprecated";
and
no warnings "deprecated::smartmatch";
work to disable the warning. Really this needs tests, but this will shut
up autodie warnings, so we can do the tests for this later. Also we
should go through and enumerate all the deprecated subcategories and
switch to using them. Deprecated warnings shouldn't be "all or nothing".
Again, I think that should happen after this is merged.