Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix spurious warnings with colonpaired longnames
Fixes RT#131305: https://rt.perl.org/Ticket/Display.html?id=131305 With a simple colonpair, like `infix:<+>` we have the value right away and don't get warnings, but with things like `postfix:<[ ]>` the value has a complex value that we compile-time compile when figuring out what to stringify it into. When we NOT compiling core setting, we evidently use the same machinery that makes and—importantly—installs blocks/thunks. So with a `:<[ ]>` colonpair in a longname, we ended up installing the Stmts with a List with two `[` and `]` strings in it. The List was in sink context and it's that List that was causing the spurious warnings seen in the ticket. Fix by adding a :$no-install param to the block-making machinery and setting it to true when compiling longname colonpairs, to avoid installation of things we don't need.
- Loading branch information
1 parent
d93f805
commit c6b7012
Showing
2 changed files
with
21 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters