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

Implementing an empty contract gives a false warning in an autogenerated file #6016

Open
Tracked by #5727
ironcev opened this issue May 15, 2024 · 0 comments
Open
Tracked by #5727
Labels
bug Something isn't working compiler: frontend Everything to do with type checking, control flow analysis, and everything between parsing and IRgen compiler General compiler. Should eventually become more specific as the issue is triaged

Comments

@ironcev
Copy link
Member

ironcev commented May 15, 2024

When implementing an empty contract like:

abi Abi { }
impl Abi for Contract { }

this warning is emitted although the above code is perfectly valid:

warning
 --> <autogenerated>:1:17
  |
0 |  pub fn __entry() {
1 |             let method_name = decode_first_param::<str>();
  |                 ----------- This declaration is never used.
2 |             
3 |             __revert(123);

@ironcev ironcev added bug Something isn't working compiler General compiler. Should eventually become more specific as the issue is triaged compiler: frontend Everything to do with type checking, control flow analysis, and everything between parsing and IRgen labels May 15, 2024
@ironcev ironcev mentioned this issue May 15, 2024
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compiler: frontend Everything to do with type checking, control flow analysis, and everything between parsing and IRgen compiler General compiler. Should eventually become more specific as the issue is triaged
Projects
None yet
Development

No branches or pull requests

1 participant