about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-01-13 10:02:46 +0100
committerSamuel Tardieu <sam@rfc1149.net>2025-01-13 23:34:19 +0100
commit8b7cfc75dd1925f2f5b01a6bf1291c778d2fd224 (patch)
treea227d67209c710db45ded47aac58bedf4068f9fe /compiler/rustc_llvm/llvm-wrapper
parent8f257c71a3a352afa93c34f4af44143e886a2e15 (diff)
downloadrust-8b7cfc75dd1925f2f5b01a6bf1291c778d2fd224.tar.gz
rust-8b7cfc75dd1925f2f5b01a6bf1291c778d2fd224.zip
Rust 1.81 and later support elision with explicit self types
Commit 9ef6e2199c885ffd671b321dfbf16ff0934f4d80 introduced a check to
ensure that Clippy doesn't consider a lifetime present in an explicit
self type as being the default for an elided output lifetime. For
example, elision did not work in the case like:

```rust
  fn func(self: &Rc<Self>, &str) -> &str { … }
```

Since Rust 1.81.0, the lifetime in the self type is now considered
the default for elision. Elision should then be suggested when
appropriate.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
0 files changed, 0 insertions, 0 deletions