Skip to content

Remove disallowed-macros lint#1397

Merged
simongdavies merged 1 commit intohyperlight-dev:mainfrom
simongdavies:remove-disallowed-macros
Apr 22, 2026
Merged

Remove disallowed-macros lint#1397
simongdavies merged 1 commit intohyperlight-dev:mainfrom
simongdavies:remove-disallowed-macros

Conversation

@simongdavies
Copy link
Copy Markdown
Member

Using the disallowed-macros lint to detect the use of assert! flags up the use of debug-assert! , use of assert in const expressions etc. This leads to more and more annotations in code to allow the valid use of asserts, rather than continually expand this this PR removes the lint in favour of detecting use of assert in release code via PR reviews

Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
@syntactically
Copy link
Copy Markdown
Member

I think I agree that the lint was probably causing more trouble than it is worth, although it is kind of sad to lose a static analysis for this. It's a shame clippy doesn't have a more specific lint that would be easier to ensure was not false-positive on obvious cases like const code.

@simongdavies simongdavies merged commit 271e69b into hyperlight-dev:main Apr 22, 2026
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bugfix For PRs that fix bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants