about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/query.rs
diff options
context:
space:
mode:
authorA4-Tacks <wdsjxhno1001@163.com>2025-07-23 13:40:38 +0800
committerA4-Tacks <wdsjxhno1001@163.com>2025-07-23 13:51:28 +0800
commit1023edc49cef9fee8bd8f6d40de67f76feb367c6 (patch)
tree87222f931c57dd3651e5c56788622c1a84ca577f /compiler/rustc_mir_transform/src/coverage/query.rs
parent8bab91ce35ba457353e261c52fd4968d75060bdb (diff)
downloadrust-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