diff options
| author | A4-Tacks <wdsjxhno1001@163.com> | 2025-07-23 13:40:38 +0800 |
|---|---|---|
| committer | A4-Tacks <wdsjxhno1001@163.com> | 2025-07-23 13:51:28 +0800 |
| commit | 1023edc49cef9fee8bd8f6d40de67f76feb367c6 (patch) | |
| tree | 87222f931c57dd3651e5c56788622c1a84ca577f /compiler/rustc_mir_transform/src/coverage/query.rs | |
| parent | 8bab91ce35ba457353e261c52fd4968d75060bdb (diff) | |
| download | rust-1023edc49cef9fee8bd8f6d40de67f76feb367c6.tar.gz rust-1023edc49cef9fee8bd8f6d40de67f76feb367c6.zip | |
Change rename self to parameter use `Self` type
And add `&self` lifetime support
Example
===
Rename to `this`
```rust
struct Foo<T>(T);
impl Foo<i32> {
fn foo(&'static self$0) {}
}
```
Old:
```rust
struct Foo<T>(T);
impl Foo<i32> {
fn foo(this: &Foo) {}
}
```
Fixes:
```rust
struct Foo<T>(T);
impl Foo<i32> {
fn foo(this: &'static Self) {}
}
```
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/query.rs')
0 files changed, 0 insertions, 0 deletions
