Commit 765be20
committed
fix: don't panic on
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) {}
```impl ?Sized for introduce_named_type_parameter1 parent 38b96a5 commit 765be20
2 files changed
Lines changed: 13 additions & 1 deletion
File tree
- crates
- ide-assists/src/handlers
- ide-db/src/syntax_helpers
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
185 | 194 | | |
186 | 195 | | |
187 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
197 | 200 | | |
198 | 201 | | |
199 | 202 | | |
| |||
0 commit comments