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

Ensure that the compiler only panics for legitimate bugs #437

Merged
merged 1 commit into from
Jun 3, 2021

Conversation

g-r-a-n-t
Copy link
Member

@g-r-a-n-t g-r-a-n-t commented Jun 1, 2021

What was wrong?

closes #436

How was it fixed?

Refactored front-end "not implemented" errors into analyzer errors and removed questionable variants.

To-Do

  • OPTIONAL: Update Spec if applicable

  • Add entry to the release notes (may forgo for trivial changes)

  • Clean up commit history

@codecov-commenter
Copy link

codecov-commenter commented Jun 1, 2021

Codecov Report

Merging #437 (62783fa) into master (aa4a91e) will decrease coverage by 0.12%.
The diff coverage is 0.00%.

❗ Current head 62783fa differs from pull request most recent head aad4c4b. Consider uploading reports for the commit aad4c4b to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master     #437      +/-   ##
==========================================
- Coverage   86.22%   86.10%   -0.13%     
==========================================
  Files          72       72              
  Lines        4785     4792       +7     
==========================================
  Hits         4126     4126              
- Misses        659      666       +7     
Impacted Files Coverage Δ
analyzer/src/context.rs 91.00% <0.00%> (-1.86%) ⬇️
analyzer/src/traversal/contracts.rs 100.00% <ø> (ø)
analyzer/src/traversal/expressions.rs 90.43% <ø> (ø)
analyzer/src/traversal/module.rs 93.33% <0.00%> (-6.67%) ⬇️
analyzer/src/traversal/structs.rs 90.90% <0.00%> (-9.10%) ⬇️
compiler/src/yul/mappers/expressions.rs 87.75% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aa4a91e...aad4c4b. Read the comment docs.

@g-r-a-n-t g-r-a-n-t marked this pull request as draft June 2, 2021 03:52
analyzer/src/traversal/expressions.rs Show resolved Hide resolved
analyzer/src/traversal/expressions.rs Outdated Show resolved Hide resolved
analyzer/src/traversal/expressions.rs Outdated Show resolved Hide resolved
analyzer/src/traversal/contracts.rs Outdated Show resolved Hide resolved
analyzer/src/traversal/structs.rs Outdated Show resolved Hide resolved
@g-r-a-n-t g-r-a-n-t force-pushed the all-panics-bugs branch 4 times, most recently from d8b9feb to aad4c4b Compare June 2, 2021 23:14
@g-r-a-n-t g-r-a-n-t marked this pull request as ready for review June 2, 2021 23:17
@g-r-a-n-t g-r-a-n-t requested a review from sbillig June 2, 2021 23:17
analyzer/src/traversal/expressions.rs Outdated Show resolved Hide resolved
}
fe::ModuleStmt::SimpleImport { .. } => {
context.not_yet_implemented("simple import", stmt.span)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could probably cut these from the ast too (though I have no strong feelings about it)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decided I'd leave it in there, since we may still use this syntax for imports.

@g-r-a-n-t g-r-a-n-t merged commit 413f3d4 into ethereum:master Jun 3, 2021
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.

Remove user-facing todos and unimplementeds
4 participants