Skip to content

css_lexer: Remove debug_assert! around atom bits#993

Merged
keithamus merged 1 commit into
mainfrom
css-lexer-remove-debug-assert-around-atom-bits
Apr 18, 2026
Merged

css_lexer: Remove debug_assert! around atom bits#993
keithamus merged 1 commit into
mainfrom
css-lexer-remove-debug-assert-around-atom-bits

Conversation

@keithamus

Copy link
Copy Markdown
Member

In #989 we added a debug_assert! to ensure dimensions were in the lower bits,
but this isn't actually invariant, because of course arbitrary input can attempt
to use unknown dimensions (that are otherwise valid atoms). So we need to remove
this debug_assert!

In #989 we added a debug_assert! to ensure dimensions were in the lower bits,
but this isn't actually invariant, because of course arbitrary input can attempt
to use unknown dimensions (that are otherwise valid atoms). So we need to remove
this debug_assert!
@keithamus
keithamus enabled auto-merge (squash) April 18, 2026 15:09

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All CI jobs have passed. Approving.

@keithamus
keithamus merged commit ce33d66 into main Apr 18, 2026
@keithamus
keithamus deleted the css-lexer-remove-debug-assert-around-atom-bits branch April 18, 2026 15:17
@keithamus keithamus mentioned this pull request Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant