Using unsafe blocks in let expressions

Mark Wielaard mark@klomp.org
Wed Jul 21 23:09:38 GMT 2021


On Wed, Jul 21, 2021 at 11:09:38PM +0200, Mark Wielaard wrote:
> +  Location locus;
> +  if (!pratt_parse)
> +    {
> +      Location locus = lexer.peek_token ()->get_locus ();

Oops, shadowed locus.  Fixed patch attached, and also at
https://code.wildebeest.org/git/user/mjw/gccrs/commit/?h=let-unsafe


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-unsafe-blocks-can-be-used-in-expressions.patch
Type: text/x-diff
Size: 3069 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-rust/attachments/20210722/995bfce2/attachment.bin>


More information about the Gcc-rust mailing list