Skip to content
Snippets Groups Projects

Replace unused pattern variables with underscore

Merged Tej Chajed requested to merge tchajed/stdpp:fix-unused-variable-warnings into master
All threads resolved!

Addresses new unused-pattern-matching-variable warning on Coq master (see https://github.com/coq/coq/pull/12768).

I'm pretty sure the hlist.v warning is a bug in Coq's heuristics for this, since those variables are used as implicit arguments and I don't see why the pattern matches more than one case (the warning is also printed twice for the same definition). Maybe there's something in the elaborated term I'm missing, which Coq doesn't even print back?

Regardless of what's going on in Coq, it's much easier for us to suppress the warning than to try to fix this upstream.

Edited by Tej Chajed

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Tej Chajed
  • Tej Chajed added 1 commit

    added 1 commit

    • b920e707 - Replace unused pattern variables with underscore

    Compare with previous version

  • Tej Chajed resolved all threads

    resolved all threads

  • Tej Chajed changed title from Prefix unused pattern variables with underscore to Replace unused pattern variables with underscore

    changed title from Prefix unused pattern variables with underscore to Replace unused pattern variables with underscore

  • Oops, I somehow missed that you updated this MR. Merging now. Many thanks!

  • mentioned in commit 41b8ca41

  • Please register or sign in to reply
    Loading