Skip to content

Conversation

@mlugg
Copy link
Member

@mlugg mlugg commented Dec 24, 2024

Also, simplify the handling of this instruction; it was previously going through a completely unnecessary runtime path. Who would write such ridiculous code?! (It was me, I wrote it)

Resolves: #22296

Also, simplify the handling of this instruction; it was previously going
through a completely unnecessary runtime path. Who would write such
ridiculous code?! (It was me, I wrote it)

Resolves: ziglang#22296
@mlugg
Copy link
Member Author

mlugg commented Dec 24, 2024

Ahh, I remember why I didn't do this already, it makes a bunch of error messages worse!

I'll look into solving this properly by embedding a "comptime reason" into ZIR.

@rohlem
Copy link
Contributor

rohlem commented Jan 20, 2025

Looks like #22352 has superseded this?

@mlugg
Copy link
Member Author

mlugg commented Jan 20, 2025

Yep, good spot.

@mlugg mlugg closed this Jan 20, 2025
@mlugg mlugg deleted the block-comptime-result-check branch May 18, 2025 20:00
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.

No error on comptime expression loading runtime value

2 participants