Skip to content

Commit 4621310

Browse files
committed
Also rename the corresponding 'experimental::all' and 'experimental::any' categories to add 'keyword_'
1 parent 9a4e5a8 commit 4621310

File tree

10 files changed

+32
-32
lines changed

10 files changed

+32
-32
lines changed

lib/B/Deparse-core.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ sub testit {
9292
else {
9393
package test;
9494
use subs ();
95-
no warnings qw( experimental::any experimental::all );
95+
no warnings qw( experimental::keyword_any experimental::keyword_all );
9696
import subs $keyword;
9797
$code = "no warnings 'syntax'; no strict 'vars'; sub { ${vars}() = $expr }";
9898
$code = "use feature 'isa';\n$code" if $keyword eq "isa";

lib/feature.pm

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/warnings.pm

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pod/perldiag.pod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ removed in a future Perl version:
7777

7878
=item all is experimental
7979

80-
(S experimental::all) This warning is emitted if you use the C<all>
81-
keyword of C<use feature 'keyword_all'>. This keyword is currently
80+
(S experimental::keyword_all) This warning is emitted if you use the
81+
C<all> keyword of C<use feature 'keyword_all'>. This keyword is currently
8282
experimental and its behaviour may change in future releases of Perl.
8383

8484
=item '%c' allowed only after types %s in %s
@@ -190,8 +190,8 @@ which 'splits' output into two streams, such as
190190

191191
=item any is experimental
192192

193-
(S experimental::any) This warning is emitted if you use the C<any>
194-
keyword of C<use feature 'keyword_any'>. This keyword is currently
193+
(S experimental::keyword_any) This warning is emitted if you use the
194+
C<any> keyword of C<use feature 'keyword_any'>. This keyword is currently
195195
experimental and its behaviour may change in future releases of Perl.
196196

197197
=item Applying %s to %s will act on scalar(%s)

regen/feature.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ =head2 The 'keyword_any' feature
10871087
change or be removed in future versions of Perl. For this reason, Perl will
10881088
warn when you use the feature, unless you have explicitly disabled the warning:
10891089
1090-
no warnings "experimental::any";
1090+
no warnings "experimental::keyword_any";
10911091
10921092
This feature enables the L<C<any>|perlfunc/any BLOCK LIST> operator keyword.
10931093
This allow testing whether any of the values in a list satisfy a given
@@ -1099,7 +1099,7 @@ =head2 The 'keyword_all' feature
10991099
change or be removed in future versions of Perl. For this reason, Perl will
11001100
warn when you use the feature, unless you have explicitly disabled the warning:
11011101
1102-
no warnings "experimental::all";
1102+
no warnings "experimental::keyword_all";
11031103
11041104
This feature enables the L<C<all>|perlfunc/all BLOCK LIST> operator keyword.
11051105
This allow testing whether all of the values in a list satisfy a given

regen/warnings.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#
1717
# This script is normally invoked from regen.pl.
1818

19-
$VERSION = '1.73';
19+
$VERSION = '1.74';
2020

2121
BEGIN {
2222
require './regen/regen_lib.pl';
@@ -157,9 +157,9 @@ BEGIN
157157
[ 5.035, DEFAULT_ON],
158158
'experimental::class' =>
159159
[ 5.037, DEFAULT_ON ],
160-
'experimental::any' =>
160+
'experimental::keyword_any' =>
161161
[ 5.041, DEFAULT_ON ],
162-
'experimental::all' =>
162+
'experimental::keyword_all' =>
163163
[ 5.041, DEFAULT_ON ],
164164
}],
165165

t/lib/croak/op

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,15 +329,15 @@ Downgrading a use VERSION declaration to below v5.11 is not permitted at - line
329329
########
330330
# any with deferred LIST expression
331331
use feature 'keyword_any';
332-
no warnings 'experimental::any';
332+
no warnings 'experimental::keyword_any';
333333
any length, qw( a b c )
334334
EXPECT
335335
syntax error at - line 4, near "any length"
336336
Execution of - aborted due to compilation errors.
337337
########
338338
# all with deferred LIST expression
339339
use feature 'keyword_all';
340-
no warnings 'experimental::all';
340+
no warnings 'experimental::keyword_all';
341341
all length, qw( a b c )
342342
EXPECT
343343
syntax error at - line 4, near "all length"

t/op/any_all.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ BEGIN {
77
}
88

99
use feature qw( keyword_any keyword_all );
10-
no warnings qw( experimental::any experimental::all );
10+
no warnings qw( experimental::keyword_any experimental::keyword_all );
1111

1212
# Basic true/false testing
1313
ok( (any { $_ > 10 } 1 .. 20), 'list contains a value above ten' );

toke.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7973,7 +7973,7 @@ yyl_word_or_keyword(pTHX_ char *s, STRLEN len, I32 key, I32 orig_keyword, struct
79737973

79747974
case KEY_all:
79757975
Perl_ck_warner_d(aTHX_
7976-
packWARN(WARN_EXPERIMENTAL__ALL), "all is experimental");
7976+
packWARN(WARN_EXPERIMENTAL__KEYWORD_ALL), "all is experimental");
79777977
BLKLOP(OP_ALLSTART);
79787978

79797979
case KEY_and:
@@ -7983,7 +7983,7 @@ yyl_word_or_keyword(pTHX_ char *s, STRLEN len, I32 key, I32 orig_keyword, struct
79837983

79847984
case KEY_any:
79857985
Perl_ck_warner_d(aTHX_
7986-
packWARN(WARN_EXPERIMENTAL__ANY), "any is experimental");
7986+
packWARN(WARN_EXPERIMENTAL__KEYWORD_ANY), "any is experimental");
79877987
BLKLOP(OP_ANYSTART);
79887988

79897989
case KEY_atan2:

warnings.h

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)