about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/doc/debugging-libgccjit.md
diff options
context:
space:
mode:
authorAlex Macleod <alex@macleod.io>2025-01-14 22:42:23 +0000
committerGitHub <noreply@github.com>2025-01-14 22:42:23 +0000
commit98761e4812f564d86030bc6596bee3102a3ca6c5 (patch)
treea9a28c4db4e2c33c9e9496d87e2938ba1f3e0df1 /compiler/rustc_codegen_gcc/doc/debugging-libgccjit.md
parent7e83ec57c60ae0d4ff8bdbc1d10291a5bb7ca558 (diff)
parent8b7cfc75dd1925f2f5b01a6bf1291c778d2fd224 (diff)
downloadrust-98761e4812f564d86030bc6596bee3102a3ca6c5.tar.gz
rust-98761e4812f564d86030bc6596bee3102a3ca6c5.zip
Rust 1.81 and later support elision with explicit self types (#13992)
Commit 9ef6e2199c885ffd671b321dfbf16ff0934f4d80 introduced a check to
ensure that Clippy doesn't consider a lifetime present in an explicit
self types 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.

changelog: [`needless_lifetimes`]: suggest elision of lifetimes present
in explicit self types as well

r? @Alexendoo
because of #8278
Diffstat (limited to 'compiler/rustc_codegen_gcc/doc/debugging-libgccjit.md')
0 files changed, 0 insertions, 0 deletions