Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ruleguard: fix sizeof filter for type params #407

Merged
merged 1 commit into from
Sep 10, 2022
Merged

Conversation

quasilyte
Copy link
Owner

Extended the dsl documentation to reflect the change:

For expressions of unknown size, like type params in generics,
any filter using this operand will fail.

We're not using 0 as a fallback size to avoid the confusion with zero-sized values like struct{}.

See go-critic/go-critic#1237

Fixes #406

Extended the dsl documentation to reflect the change:

	For expressions of unknown size, like type params in generics,
	any filter using this operand will fail.

We're not using 0 as a fallback size to avoid the confusion
with zero-sized values like `struct{}`.

See go-critic/go-critic#1237

Fixes #406
@quasilyte quasilyte merged commit 5be3150 into master Sep 10, 2022
@quasilyte quasilyte deleted the quasilyte/issue406 branch September 10, 2022 07:10
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.

panic with generics
1 participant