You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 208d6db
Browse filesBrowse the repository at this point in the historyBrowse files
Rollup merge of #165851 - amirHdev:objectpick-invalid-receiver-recovery, r=mejrs
fix ICE when confirming invalid dyn method receivers
fixes#165033
method lookup can pick a method with an invalid receiver which causes an ICE during confirmation and if the method has already failed well-formedness checking we recover instead of crashing
error[E0307]: invalid `self` parameter type: `&Cell<(dyn Bar + 'static)>`
2
+
--> $DIR/invalid-self-dyn-receiver-cell.rs:8:21
3
+
|
4
+
LL | fn method(self: &Cell<dyn Bar>) {}
5
+
| ^^^^^^^^^^^^^^
6
+
|
7
+
= note: type of `self` must be `Self` or a type that dereferences to it
8
+
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`)
9
+
10
+
error: aborting due to 1 previous error
11
+
12
+
For more information about this error, try `rustc --explain E0307`.
0 commit comments