Matthias Krüger
27d7fb0cfa
Rollup merge of #129668 - coolreader18:fix-pin-set-regr, r=dtolnay
Fix Pin::set bounds regression
Fixes #129601
Fixes the regression from #129449, where changing the bounds of the impl block containing `Pin::set` changed the method resolution behavior.
```rust
struct A;
impl A {
fn set(&self) {}
}
let a: Pin<&A>;
a.set();
// before:
// - checks <impl<Ptr: DerefMut> Pin<Ptr>>::set(): `&A` doesn't impl `DerefMut`
// - autorefs -> &A: resolves to A::set()
// now:
// - checks <impl<Ptr: Deref> Pin<Ptr>>::set(): `&A` impls `Deref`! resolves to Pin::set()
// - check method bounds: `&A` doesn't impl DerefMut: error
```
r? `@dtolnay`
2024-08-28 17:12:20 +02:00
..
2024-08-26 01:49:03 +02:00
2024-08-28 17:12:20 +02:00
2024-07-28 14:46:29 -04:00
2024-07-30 17:49:08 +00:00
2024-07-26 13:26:33 +01:00
2024-07-29 11:42:35 +02:00
2024-08-24 21:21:34 +10:00
2024-07-25 15:14:42 -04:00
2024-08-27 18:59:27 +02:00
2024-08-21 00:20:27 -07:00
2024-07-29 07:41:33 +00:00
2024-08-13 20:14:56 +02:00
2024-07-30 17:49:08 +00:00
2024-08-09 10:43:43 +00:00
2024-08-23 12:02:26 -07:00
2024-08-09 11:06:39 +00:00