Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: c8bfe0f85cf3ba06cafa4f1776244a1bfc88050f
https://github.com/Perl/perl5/commit/c8bfe0f85cf3ba06cafa4f1776244a1bfc88050f
Author: Paul "LeoNerd" Evans <[email protected]>
Date: 2025-09-27 (Sat, 27 Sep 2025)
Changed paths:
M t/op/attrproto.t
Log Message:
-----------
Improved warning diagnostics in t/op/attrproto.t
* Reset `@warnings` array between tests so failures in one block don't leak
into all the later ones
* Print the next warning using `diag` if we fail because it isn't empty
Commit: 6c3c82709da66b437d0df8fefc075afbae9d964f
https://github.com/Perl/perl5/commit/6c3c82709da66b437d0df8fefc075afbae9d964f
Author: Paul "LeoNerd" Evans <[email protected]>
Date: 2025-09-27 (Sat, 27 Sep 2025)
Changed paths:
M ext/attributes/attributes.xs
M t/op/attrproto.t
Log Message:
-----------
Check the right caller context for 'illegalproto' warnings in attributes.xs
Previously the XS code always checked its immediate caller for warnings.
This was fine when core perl invokes it directly in a `:prototype`
warning, but was checking the wrong layer when invoked indirectly via
`attributes::import`. In that case, it meant that it was sensitive to,
and printed warnings as it coming from attributes.pm itself, rather than
the intended caller; i.e. the location of the `use attributes ...`
statement.
This is fixed by using `caller_cx()` to walk up the caller stack looking
for a call frame not from the `attributes` package.
Commit: 4f8316fa3ad1bb4fa2b5431d4dd81eb63df65602
https://github.com/Perl/perl5/commit/4f8316fa3ad1bb4fa2b5431d4dd81eb63df65602
Author: Paul "LeoNerd" Evans <[email protected]>
Date: 2025-09-27 (Sat, 27 Sep 2025)
Changed paths:
M ext/attributes/attributes.pm
M ext/attributes/attributes.xs
Log Message:
-----------
Modernize attributes.pm for v5.40
* use v5.40
* `our` on package globals
* Signatures on subs
* Lexical subs when not required to be visible
* `module_true` means no need for ending `1;`
* Use `//` operator
* Remove `reftype` from attributes.xs and use builtin::reftype instead
Compare: https://github.com/Perl/perl5/compare/ab443b59eb38...4f8316fa3ad1
To unsubscribe from these emails, change your notification settings at
https://github.com/Perl/perl5/settings/notifications