This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
feature.h: Mask hints in CURRENT_FEATURE_BUNDLE
authorFather Chrysostomos <sprout@cpan.org>
Sun, 29 Jan 2012 07:06:25 +0000 (23:06 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 29 Jan 2012 07:35:14 +0000 (23:35 -0800)
commit035b6821e6e17ee4ea286a7a8332b86222a67695
tree0b38daed0e1330946933f4575ebfa8f5196aecb6
parent0865059d9cec0d198515152182d4283ab634748e
feature.h: Mask hints in CURRENT_FEATURE_BUNDLE

Otherwise CURRENT_FEATURE_BUNDLE will end up including any hints added
later that happen to use higher bits.

This was causing autobox to turn off all features, causing failures
for Dist::Zilla::PluginBundle::AVAR.

I’m not adding tests for this, as such tests would need constant
tweaking in future perl developement.  What autobox is doing is
naughty and unsupported anyway.
feature.h
regen/feature.pl