Skip to content

fix: postfix completions include nots prefix-expr#21903

Open
A4-Tacks wants to merge 2 commits intorust-lang:masterfrom
A4-Tacks:postfix-include-nots
Open

fix: postfix completions include nots prefix-expr#21903
A4-Tacks wants to merge 2 commits intorust-lang:masterfrom
A4-Tacks:postfix-include-nots

Conversation

@A4-Tacks
Copy link
Copy Markdown
Member

  • Remove redundant fallback state in include_references

Example

Like is_foo, .not, .if

fn main() {
    let is_foo = true;
    !is_foo.$0
}

Before this PR

fn main() {
    let is_foo = true;
    !if is_foo {
        $0
    }
}

After this PR

fn main() {
    let is_foo = true;
    if !is_foo {
        $0
    }
}

Example
---
Like `is_foo`, `.not`, `.if`

```rust
fn main() {
    let is_foo = true;
    !is_foo.$0
}
```

**Before this PR**

```rust
fn main() {
    let is_foo = true;
    !if is_foo {
        $0
    }
}
```

**After this PR**

```rust
fn main() {
    let is_foo = true;
    if !is_foo {
        $0
    }
}
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 29, 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