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

fix slice assignment for strings #1027

Merged
merged 7 commits into from Jun 11, 2021
Merged

Conversation

gluax
Copy link
Contributor

@gluax gluax commented Jun 8, 2021

Fixes #1025.
It also removes valid programming checks for phases and only checks the AST.

@gluax gluax added the bug Something isn't working label Jun 8, 2021
@gluax gluax self-assigned this Jun 8, 2021
Copy link
Collaborator

@acoglio acoglio left a comment

Choose a reason for hiding this comment

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

Looks good.

(But it appears that a required CI test did not pass.)

@gluax
Copy link
Contributor Author

gluax commented Jun 8, 2021

@acoglio I'm looking into it, all of them pass locally for me so I'm trying to figure out what's up.

@codecov
Copy link

codecov bot commented Jun 8, 2021

Codecov Report

Merging #1027 (2be23c4) into master (316e781) will increase coverage by 0.40%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1027      +/-   ##
==========================================
+ Coverage   75.35%   75.75%   +0.40%     
==========================================
  Files         438      438              
  Lines       17586    17601      +15     
==========================================
+ Hits        13252    13334      +82     
+ Misses       4334     4267      -67     
Impacted Files Coverage Δ
compiler/src/compiler.rs 90.62% <ø> (ø)
compiler/src/console/assert.rs 81.81% <ø> (ø)
compiler/src/console/console.rs 100.00% <ø> (ø)
compiler/src/expression/array/access.rs 50.41% <ø> (+28.09%) ⬆️
compiler/src/expression/conditional/conditional.rs 71.42% <ø> (ø)
compiler/src/expression/expression.rs 88.09% <ø> (ø)
compiler/src/expression/logical/and.rs 90.00% <ø> (ø)
compiler/src/expression/logical/or.rs 90.00% <ø> (ø)
compiler/src/expression/relational/eq.rs 66.66% <ø> (ø)
compiler/src/expression/relational/ge.rs 66.66% <ø> (ø)
... and 40 more

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 c33facb...2be23c4. Read the comment docs.

ast/src/reducer/canonicalization.rs Outdated Show resolved Hide resolved
@gluax gluax added bug-fix and removed bug Something isn't working labels Jun 10, 2021
@acoglio acoglio merged commit 04c809c into master Jun 11, 2021
@acoglio acoglio deleted the bug/1025-assigning-slice-to-string branch June 11, 2021 18:37
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.

[Bug] assigning to string slice causes not implemented: strings do not exist on ASG level
3 participants