Skip to content

Refactor loop into iterator; simplify negation logic. - #96029

Merged
bors merged 2 commits into
rust-lang:masterfrom
IsakNyberg:error-messages-fix
Apr 20, 2022
Merged

Refactor loop into iterator; simplify negation logic.#96029
bors merged 2 commits into
rust-lang:masterfrom
IsakNyberg:error-messages-fix

Conversation

@IsakNyberg

Copy link
Copy Markdown
Contributor

is_dummy should return when a non-dummy is found, but instead is iterated until completion. With some inspiration from line 323 this was refactored to a single line that returns once a single counterexample is found.

@rustbotrustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Apr 13, 2022
@rust-highfive

Copy link
Copy Markdown
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @matthewjasper (or someone else) soon.

Please see the contribution instructions for more information.

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 13, 2022
Comment threadcompiler/rustc_error_messages/src/lib.rs Outdated
Co-authored-by: Janusz Marcinkiewicz <virrages@gmail.com>
@Dylan-DPC

Copy link
Copy Markdown
Member

@bors r+ rollup

@bors

bors commented Apr 19, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit 657ae03 has been approved by Dylan-DPC

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 19, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Apr 19, 2022
…lan-DPC
Refactor loop into iterator; simplify negation logic.
is_dummy should return when a non-dummy is found, but instead is iterated until completion. With some inspiration from line 323 this was refactored to a single line that returns once a single counterexample is found.
@Dylan-DPCDylan-DPC mentioned this pull request Apr 19, 2022
@Dylan-DPCDylan-DPC mentioned this pull request Apr 19, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 20, 2022
Rollup of 6 pull requests
Successful merges:
- rust-lang#95740 (asm: Add a kreg0 register class on x86 which includes k0)
- rust-lang#95813 (Remove extra space before a where clause)
- rust-lang#96029 (Refactor loop into iterator; simplify negation logic.)
- rust-lang#96162 (interpret: Fix writing uninit to an allocation)
- rust-lang#96165 (Miri provenance cleanup)
- rust-lang#96205 (Use futex locks on emscripten.)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 113f079 into rust-lang:masterApr 20, 2022
@rustbotrustbot added this to the 1.62.0 milestone Apr 20, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@IsakNyberg@rust-highfive@Dylan-DPC@bors@VirrageS@matthewjasper@rustbot