-
-
Notifications
You must be signed in to change notification settings - Fork 804
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
refactor: remove duplicate terminus checking code #3541
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #3541 +/- ##
==========================================
+ Coverage 84.18% 84.20% +0.01%
==========================================
Files 92 92
Lines 13137 13133 -4
Branches 2928 2926 -2
==========================================
- Hits 11059 11058 -1
+ Misses 1659 1655 -4
- Partials 419 420 +1 ☔ View full report in Codecov by Sentry. |
@tserg could you take a look at the merge conflict? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like the following program is (correctly) rejected on master but allowed on this branch:
@external
def foo():
return
return
fix dead code detection fix detection of returns after valid branching returns add tests
i fixed this and also rewrote the check_terminator routine to be much simpler. i also fixed #3265 at the same time (see: 7b2c74b#diff-26eeb855b192798bd168b623451c4787dcee61bb51b19999cfc6a97881d6feb5R90-R91) |
What I did
Remove
check_single_exit
andis_return_from_function
which duplicatesis_terminus_node
/check_for_terminus
.also fixes #3265
How I did it
Delete
How to verify it
Tests still pass
Commit message
Description for the changelog
Remove duplicate check for terminus node.
Cute Animal Picture