Skip to content
New issue

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

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

Already on GitHub? # to your account

Figure out a way to print names of intersecting messages in const context. #40

Open
jawoznia opened this issue Sep 8, 2022 · 1 comment
Assignees
Labels
backlog Items planned to be done, but with no milestone yet

Comments

@jawoznia
Copy link
Collaborator

jawoznia commented Sep 8, 2022

Currently in verify_no_collissions we will call
panic!("Message overlaps between interface and contract impl!");
in case of intersection between two or more messages. This is not helpful enough and it would be best to print duplicated messages name.

Unfortunately because it all happens in const fn we can't just call format! and concatenate two strings.

Below example compiles and could be a way to workaround this.
panic!("{}", msgs[i][outer_i]);
Maybe there is a way to print message before panicking explaining what is causing compilation to fail.

@jawoznia jawoznia added the idea label Sep 8, 2022
@jawoznia
Copy link
Collaborator Author

jawoznia commented Sep 8, 2022

This is a follow up issue to #8

@hashedone hashedone added backlog Items planned to be done, but with no milestone yet and removed idea labels Feb 26, 2024
@kulikthebird kulikthebird self-assigned this Jun 27, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
backlog Items planned to be done, but with no milestone yet
Projects
None yet
Development

No branches or pull requests

3 participants