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

[Rust] Fix scope for assignment operator #2208

Merged
merged 1 commit into from
Nov 21, 2019
Merged

Conversation

TheClams
Copy link
Contributor

Simply swap comparison and assignement operator to be sure assignment get tested first.
Add relevant test.

Fixes issue #2147

@jwortmann
Copy link
Contributor

I think these rules have to be splitted to ensure the right testing order. With the current change, == will be keyword.operator.assignment.rust instead of keyword.operator.comparison.rust, I believe.

Simply swap comparison and assignement operator to be sure
 assignment get tested first.
Add relevant test.

Fixes issue sublimehq#2147
@TheClams
Copy link
Contributor Author

Correct, thanks for the review

@wbond wbond merged commit 8434c7d into sublimehq:master Nov 21, 2019
@jrappen
Copy link
Contributor

jrappen commented Dec 2, 2019

@TheClams Please use Fixes #2147 or Closes #2147 in commit messages. Fixes issue #2147 doesn't auto-close that on merge of this PR.

mitranim pushed a commit to mitranim/Packages that referenced this pull request Mar 25, 2022
Simply swap comparison and assignement operator to be sure
 assignment get tested first.
Add relevant test.

Fixes issue sublimehq#2147
@TheClams TheClams deleted the rust branch September 18, 2022 07:52
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.

5 participants