Skip to content

debug_assert! expression is not checked when debugAssertions is disabled #14453

Open

Description

@KislyjKisel

Prerequisites

Description

Currently with debugAssertions option disabled debug_assert! accepts everything that parses.

Steps to Reproduce

  1. debug_assert! '1' + 2
  2. debugAssertions option is disabled

Expected behavior: macro throws an error signaling that the expression is invalid.

Actual behavior: macro discards the expression silently.

Versions

Lean 4.32.0

Additional Information

Equivalent macro in Rust always performs type checking.

Impact

Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.

Activity

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

    P-lowWe are not planning to work on this issuebugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions