Skip to content

fix: complete inferred type in static#21542

Merged
Veykril merged 1 commit intorust-lang:masterfrom
A4-Tacks:inferred-static
Jan 29, 2026
Merged

fix: complete inferred type in static#21542
Veykril merged 1 commit intorust-lang:masterfrom
A4-Tacks:inferred-static

Conversation

@A4-Tacks
Copy link
Member

Example

struct Foo<T>(T);
static FOO: $0 = Foo(2);

Before this PR

...
bt u32                      u32
...

After this PR

...
bt u32                      u32
it Foo<i32>
...

Example
---
```rust
struct Foo<T>(T);
static FOO: $0 = Foo(2);
```

**Before this PR**

```text
...
bt u32                      u32
...
```

**After this PR**

```text
...
bt u32                      u32
it Foo<i32>
...
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 29, 2026
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 added this pull request to the merge queue Jan 29, 2026
Merged via the queue into rust-lang:master with commit 799ce04 Jan 29, 2026
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 29, 2026
@A4-Tacks A4-Tacks deleted the inferred-static branch January 29, 2026 18:08
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