Skip to content

fix: offer on ! for apply_demorgan_iterator#22151

Open
A4-Tacks wants to merge 1 commit intorust-lang:masterfrom
A4-Tacks:demorgan-iter-on-not
Open

fix: offer on ! for apply_demorgan_iterator#22151
A4-Tacks wants to merge 1 commit intorust-lang:masterfrom
A4-Tacks:demorgan-iter-on-not

Conversation

@A4-Tacks
Copy link
Copy Markdown
Member

@A4-Tacks A4-Tacks commented Apr 23, 2026

Partial of #20599

Example

fn main() {
    let arr = [1, 2, 3];
    let cond = $0!arr.into_iter().all(|num| num != 4);
}

Before this PR

Assist not applicable

After this PR

fn main() {
    let arr = [1, 2, 3];
    let cond = arr.into_iter().any(|num| num == 4);
}

Example
---
```rust
fn main() {
    let arr = [1, 2, 3];
    let cond = $0!arr.into_iter().all(|num| num != 4);
}
```

**Before this PR**

Assist not applicable

**After this PR**

```rust
fn main() {
    let arr = [1, 2, 3];
    let cond = arr.into_iter().any(|num| num == 4);
}
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants