about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-08-09 22:59:59 +0200
committerGitHub <noreply@github.com>2023-08-09 22:59:59 +0200
commit90c0371ca931b8f109d7b28d49cfb85e146d21a7 (patch)
tree89ca7508853d08fbe46246ca1383c2bfff0974a9 /compiler/rustc_codegen_gcc
parent128cc065158d259f77479b20316a89ed2ac7a6ca (diff)
parent843549e4786a88fcd120d083bd98f8046469e054 (diff)
downloadrust-90c0371ca931b8f109d7b28d49cfb85e146d21a7.tar.gz
rust-90c0371ca931b8f109d7b28d49cfb85e146d21a7.zip
Rollup merge of #114469 - estebank:arbitrary-self-types-mut-diff, r=davidtwco
Detect method not found on arbitrary self type with different mutability

```
error[E0599]: no method named `x` found for struct `Pin<&S>` in the current scope
  --> $DIR/arbitrary_self_type_mut_difference.rs:11:18
   |
LL |     Pin::new(&S).x();
   |                  ^ help: there is a method with a similar name: `y`
   |
note: method is available for `Pin<&mut S>`
  --> $DIR/arbitrary_self_type_mut_difference.rs:6:5
   |
LL |     fn x(self: Pin<&mut Self>) {}
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
```

Related to #57994, as one of the presented cases can lead to code like this.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions