Skip to content

Conversation

@eddyb
Copy link
Member

@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