Skip to content

mark bounds check failures as the cold path #10113

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

Merged
merged 1 commit into from
Oct 29, 2013
Merged

mark bounds check failures as the cold path #10113

merged 1 commit into from
Oct 29, 2013

Conversation

thestinger
Copy link
Contributor

LLVM is unable to determine this for most cases.

http://llvm-reviews.chandlerc.com/D2034 needs to land upstream before
this is going to have an effect. It's harmless to start generating the
expect hint now.

LLVM is unable to determine this for most cases.

http://llvm-reviews.chandlerc.com/D2034 needs to land upstream before
this is going to have an effect. It's harmless to start generating the
expect hint now.
bors added a commit that referenced this pull request Oct 28, 2013
LLVM is unable to determine this for most cases.

http://llvm-reviews.chandlerc.com/D2034 needs to land upstream before
this is going to have an effect. It's harmless to start generating the
expect hint now.
@thestinger thestinger closed this Oct 28, 2013
@thestinger thestinger reopened this Oct 28, 2013
@bors bors closed this Oct 29, 2013
@bors bors merged commit dde8be6 into rust-lang:master Oct 29, 2013
@thestinger thestinger deleted the expect branch November 9, 2013 05:42
flip1995 pushed a commit to flip1995/rust that referenced this pull request Dec 29, 2022
…_suggestion, r=Jarcho

fix incorrect suggestion in `suboptimal_flops`

fixes rust-lang#10003

There was an error when trying to negate an expression like `x - 1.0`. We used to format it as `-x - 1.0` whereas a proper negation would be `-(x - 1.0)`.

Therefore, we add parentheses around the expression when it is `ExprKind::Binary`.

We also add parentheses around multiply and divide expressions, even though this is not strictly necessary.

changelog: [`suboptimal_flops`]: fix incorrect suggestion caused by an incorrect negation of floating point expressions.
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 21, 2023
…ith-tail-expr, r=Veykril

fix: don't use control flow when extracted fn contains tail expr of original fn

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

3 participants