Skip to content

Conversation

@A4-Tacks
Copy link
Member

Example

//- /main.rs cfg:test,dbg=false,opt_level=2
#[cfg($0)]

Before this PR

#[cfg(opt_level)]

After this PR

#[cfg(opt_level = $0)]

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 21, 2025
Example
---
```rust
//- /main.rs cfg:test,dbg=false,opt_level=2
#[cfg($0)]
```

**Before this PR**

```rust
#[cfg(opt_level)]
```

**After this PR**

```rust
#[cfg(opt_level = $0)]
```
Copy link
Member

@Veykril Veykril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Veykril Veykril changed the title Completion = $0 after keyval cfg predicate feat: Completion = $0 after keyval cfg predicate Nov 23, 2025
@Veykril Veykril added this pull request to the merge queue Nov 23, 2025
Merged via the queue into rust-lang:master with commit 55d4de1 Nov 23, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 23, 2025
@A4-Tacks A4-Tacks deleted the cfg-pred-keyval-eq branch November 24, 2025 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants