diff options
| author | A4-Tacks <wdsjxhno1001@163.com> | 2025-09-11 10:23:02 +0800 |
|---|---|---|
| committer | A4-Tacks <wdsjxhno1001@163.com> | 2025-09-11 10:23:02 +0800 |
| commit | 2d87bc3e6bfc9e6ccda01a5898980b1e0a706708 (patch) | |
| tree | 9a01305e292a6d73762c56343fef714cd07be3fd /compiler/rustc_codegen_gcc | |
| parent | 8764ecfe99c328b390278608c791f7b3732f3c23 (diff) | |
| download | rust-2d87bc3e6bfc9e6ccda01a5898980b1e0a706708.tar.gz rust-2d87bc3e6bfc9e6ccda01a5898980b1e0a706708.zip | |
Fix empty generic param list for generate_function
Example
---
```rust
struct Foo<S>(S);
impl<S> Foo<S> {
fn foo(&self) {
self.bar()$0;
}
}
```
**Before this PR**:
```rust
struct Foo<S>(S);
impl<S> Foo<S> {
fn foo(&self) {
self.bar();
}
fn bar<>(&self) ${0:-> _} {
todo!()
}
}
```
**After this PR**:
```rust
struct Foo<S>(S);
impl<S> Foo<S> {
fn foo(&self) {
self.bar();
}
fn bar(&self) ${0:-> _} {
todo!()
}
}
```
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
