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

Unify ShiftInRange and Shift traits #183

Merged
merged 3 commits into from
Apr 17, 2024
Merged

Unify ShiftInRange and Shift traits #183

merged 3 commits into from
Apr 17, 2024

Conversation

BinderDavid
Copy link
Collaborator

@BinderDavid BinderDavid commented Apr 16, 2024

Small PR :) Basically I was a bit confused about how the ShiftInRange and Shift traits interact.

It is still WIP because I want to write a bit more documentation about the expected invariant, which isn't documented at the moment. Edit: I added some unit tests and more comments explaining the range and how to implement shift correctly.

@BinderDavid BinderDavid marked this pull request as ready for review April 16, 2024 21:34
Copy link
Collaborator

@timsueberkrueb timsueberkrueb 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 to me except for a small mistake in the doc string.

lang/syntax/src/common/de_bruijn.rs Outdated Show resolved Hide resolved
@BinderDavid
Copy link
Collaborator Author

Thx, I fixed the mistake in the doc comment.

@BinderDavid BinderDavid merged commit b6ebd47 into main Apr 17, 2024
6 checks passed
@BinderDavid BinderDavid deleted the simplify-shift branch April 17, 2024 11:19
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.

2 participants