-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Consider labels of inline asm as conditionally executed #15676
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
Conversation
7b1d6e9 to
d94a9fe
Compare
This comment has been minimized.
This comment has been minimized.
|
r? clippy |
d94a9fe to
2b6ed3b
Compare
|
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
r? clippy |
2b6ed3b to
5e73286
Compare
tests/ui/never_loop.rs
Outdated
| //~v never_loop | ||
| loop { | ||
| // We don't check the applicability in tests, but this should | ||
| // be `Applicability::MaybeIncorrect` because of the `break` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this working currently or a FIXME?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't figure out why I wrote this, so I removed it. Moreover, no suggestion is proposed here, so applicability doesn't matter.
Since an `asm!()` statement is mostly unknown, as we do not know what it does, consider all labels' `break` as being conditionally executed only.
5e73286 to
a5b3c44
Compare
Since an
asm!()statement is mostly unknown, as we do not know what it does, consider all labels'breakas being conditionally executed only.Fixes #15673
changelog: [
never_loop]: do not considerbreaklabels used inasm!()as being unconditionally executed as they might not be