Skip to content

fix: term_search exclude useless target type - #22994

Open
A4-Tacks wants to merge 1 commit into
rust-lang:masterfrom
A4-Tacks:useless-ty-term-search-assist
Open

fix: term_search exclude useless target type#22994
A4-Tacks wants to merge 1 commit into
rust-lang:masterfrom
A4-Tacks:useless-ty-term-search-assist

Conversation

@A4-Tacks

@A4-Tacks A4-Tacks commented Aug 1, 2026

Copy link
Copy Markdown
Member

Example

fn f() { let a: () = (); let b: () = todo$0!() }

Before this PR

1. Inline macro
2. Replace todo!() with a
3. Replace todo!() with ()
4. Replace todo!() with f()

After this PR

1. Inline macro

Example
---
```rust
fn f() { let a: () = (); let b: () = todo$0!() }
```

**Before this PR**

```text
1. Inline macro
2. Replace todo!() with a
3. Replace todo!() with ()
4. Replace todo!() with f()
```

**After this PR**

```text
1. Inline macro
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 1, 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