Skip to content

[BLOCKED BY MACRO_RULES SEMANTICS] Add assertions_on_constants #81

@0xLucqs

Description

@0xLucqs

What it does

Checks for assert!(true) and assert!(false) calls.

Why is this bad?

Should probably be replaced by a panic!() or removed

Example

assert!(false)
assert!(true)
const B: bool = false;
assert!(B)

Sub-issues

Metadata

Metadata

Projects

Status

Blocked

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions