diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-02-25 14:26:13 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-02-25 14:26:13 -0800 |
commit | da5b542134ae843ebd50725db33b1ce6d82af1c1 (patch) | |
tree | a5ae95a1be912045dfafb4c76323157e5f200926 /regen | |
parent | 5d826eaef15535c7ea548c9031da0da0406c4941 (diff) | |
download | perl-da5b542134ae843ebd50725db33b1ce6d82af1c1.tar.gz |
Don’t ‘normalise’ hints for bare ‘no feature’
‘Normalise’ in this case means to set $^H to indicate that features
are in %^H (FEATURE_BUNDLE_CUSTOM) and to make %^H contain the current
feature set.
Since ‘no feature’ sets the default feature bundle in $^H, this is
unnecessary in that case.
Diffstat (limited to 'regen')
-rwxr-xr-x | regen/feature.pl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/regen/feature.pl b/regen/feature.pl index 0844e44575..aaac912ca2 100755 --- a/regen/feature.pl +++ b/regen/feature.pl @@ -632,17 +632,17 @@ sub import { sub unimport { my $class = shift; - if (my $features = current_bundle) { - # Features are enabled implicitly via bundle hints. - normalise_hints $features; - } - # A bare C<no feature> should reset to the default bundle if (!@_) { $^H &= ~($hint_uni8bit|$hint_mask); return; } + if (my $features = current_bundle) { + # Features are enabled implicitly via bundle hints. + normalise_hints $features; + } + while (@_) { my $name = shift; if (substr($name, 0, 1) eq ":") { |