FFFF unused variable in rust codegen · Issue #507 · katef/libfsm · GitHub
[go: up one dir, main page]

Skip to content

unused variable in rust codegen #507

Open

Description

@katef

Despite my efforts, we still have this occasionally:

[OK    ] line 2648: pcre regexp /\w+(.)(.)?def/s matched "abc\r\ndef"
[OK    ] line 2652: pcre regexp /^\w+=.*(\\\n.*)*/ matched "abc=xyz\\\npqr"
[OK    ] line 2656: pcre regexp /^(a()*)*/ matched "aaaa"
warning: unused variable: `c`
  --> /tmp/fsmcompile_src-sQw3dT.rs:16:22
   |
16 |                 let &c = bytes.next()?;
   |                      ^ help: if this is intentional, prefix it with an underscore: `_c`
   |
   = note: `#[warn(unused_variables)]` on by default
warning: 1 warning emitted
build/test/retest/testinput6.tst: no errors
[OK    ] line 2660: pcre regexp /^(?:a(?:(?:))*)*/ matched "aaaa"
[OK    ] line 2664: pcre regexp /^(a()+)+/ matched "aaaa"
[OK    ] line 2668: pcre regexp /^(?:a(?:(?:))+)+/ matched "aaaa"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0