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

Disallow duplicate indexes using constant evaluation #653

Merged
merged 3 commits into from
Jan 25, 2025

Conversation

pkhry
Copy link
Contributor

@pkhry pkhry commented Nov 8, 2024

Description

following a suggestion from here #628 (comment)

Notes

It seems that it's not possible to have a good error message this way, as format! in cant be used in constant_blocks, so string interpolation is not possible unless we pick up const_format and re-export it from the library.

@pkhry pkhry requested a review from gui1117 November 8, 2024 15:05
@pkhry pkhry closed this Jan 17, 2025
* improve error message

* Apply suggestions from code review

Co-authored-by: Bastian Köcher <[email protected]>

* finally understanding rust const environment

* fmt

---------

Co-authored-by: Bastian Köcher <[email protected]>
@gui1117 gui1117 reopened this Jan 25, 2025
@gui1117
Copy link
Contributor

gui1117 commented Jan 25, 2025

I was basing my PR on top of yours, so I re-opened it.

@bkchr if you like it we can merge it

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.

3 participants