Skip to content

Remove long-obsolete is_blocklisted_fn mechanism. #267

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

Merged
merged 1 commit into from
Jun 3, 2025

Conversation

eddyb
Copy link
Collaborator

@eddyb eddyb commented Jun 3, 2025

Whatever it was meant to protect against, seems to be long gone, so this was just wastefully pattern-matching all monomorphic function instances against e.g. <_ as core::fmt::Debug>::fmt.

Ran into the zombie1 it introduces when declaring a "blocklisted" function, and I was going to move that around so it at least always generates an OpFunction, but nothing broke when removing the check entirely.
1 (OpUndef of type OpTypeFunction is already pretty sketchy, but it's even worse when passed to instructions that expect the ID of an OpFunction, not just "some value of function type")

@eddyb eddyb enabled auto-merge June 3, 2025 16:16
Copy link
Member

@Firestar99 Firestar99 left a comment

Choose a reason for hiding this comment

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

Didn't break my projects

@eddyb eddyb added this pull request to the merge queue Jun 3, 2025
Merged via the queue into Rust-GPU:main with commit e4375b1 Jun 3, 2025
7 checks passed
@eddyb eddyb deleted the unblocklistfn branch June 3, 2025 16:59
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.

2 participants