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 a bug in shootout-reverse-complement, official tests should pass with it #12765

Merged
merged 1 commit into from
Mar 11, 2014

Conversation

TeXitoi
Copy link
Contributor

@TeXitoi TeXitoi commented Mar 8, 2014

No description provided.

@alexcrichton
Copy link
Member

It's not entirely clear what's being fixed here to me. Could you update the commit message to be more descriptive about what bug is being fixed and why?

@TeXitoi
Copy link
Contributor Author

TeXitoi commented Mar 9, 2014

Complement of the commit message added:

In the "reverse-complement" loop, if there is an even number of element,
we forget to complement the element in the middle.  For example, if the
input is "ggg", the result before the fix is "CgC" instead of "CCC".

This is because of this bug that the official shootout says that the rust
version is in "Bad Output".  This commit should fix this error.

OK?

@huonw
Copy link
Member

huonw commented Mar 9, 2014

(ggg is an odd number of elements.)

@TeXitoi
Copy link
Contributor Author

TeXitoi commented Mar 9, 2014

oops, I correct that (I always mix odd and even...)

@TeXitoi
Copy link
Contributor Author

TeXitoi commented Mar 9, 2014

s/even/odd/ done.

@alexcrichton
Copy link
Member

Feel free to add // ignore-pretty to the test, there are many known bugs in the pretty printer.

…with it

In the "reverse-complement" loop, if there is an odd number of element,
we forget to complement the element in the middle.  For example, if the
input is "ggg", the result before the fix is "CgC" instead of "CCC".

This is because of this bug that the official shootout says that the rust
version is in "Bad Output".  This commit should fix this error.
@TeXitoi
Copy link
Contributor Author

TeXitoi commented Mar 11, 2014

// ignore-pretty added.

bors added a commit that referenced this pull request Mar 11, 2014
@bors bors closed this Mar 11, 2014
@bors bors merged commit 7956a11 into rust-lang:master Mar 11, 2014
@TeXitoi TeXitoi deleted the fix-shootout-reverse-complement branch March 12, 2014 08:21
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 25, 2022
fix: Fix imports being inserted before doc comments in inline modules

Fixes rust-lang/rust-analyzer#12758
flip1995 pushed a commit to flip1995/rust that referenced this pull request May 21, 2024
Add new lint `while_float`

This PR adds a nursery lint that checks for while loops comparing floating point values.

changelog:
```
changelog: [`while_float`]: Checks for while loops comparing floating point values.
```

Fixes rust-lang#758
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.

4 participants