Skip to content

fix: don't panic on impl ?Sized for introduce_named_type_parameter#22265

Merged
ChayimFriedman2 merged 1 commit intorust-lang:masterfrom
A4-Tacks:suggest-impl-type-question
May 3, 2026
Merged

fix: don't panic on impl ?Sized for introduce_named_type_parameter#22265
ChayimFriedman2 merged 1 commit intorust-lang:masterfrom
A4-Tacks:suggest-impl-type-question

Conversation

@A4-Tacks
Copy link
Copy Markdown
Member

@A4-Tacks A4-Tacks commented May 3, 2026

Example

fn foo(bar: &$0impl ?Sized) {}

Before this PR

panic: Failed to make ast node `syntax::ast::generated::nodes::Name` from text mod ?;

After this PR

fn foo<$0S: ?Sized>(bar: &S) {}

Example
---
```rust
fn foo(bar: &$0impl ?Sized) {}
```

**Before this PR**

```
panic: Failed to make ast node `syntax::ast::generated::nodes::Name` from text mod ?;
```

**After this PR**

```rust
fn foo<$0S: ?Sized>(bar: &S) {}
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 3, 2026
@ChayimFriedman2 ChayimFriedman2 added this pull request to the merge queue May 3, 2026
Merged via the queue into rust-lang:master with commit f04c372 May 3, 2026
18 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 3, 2026
@A4-Tacks A4-Tacks deleted the suggest-impl-type-question branch May 3, 2026 21:38
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