bors
94bc9c737e
Auto merge of #114811 - estebank:impl-ambiguity, r=wesleywiser
...
Show more information when multiple `impl`s apply
- When there are `impl`s without type params, show only those (to avoid showing overly generic `impl`s).
```
error[E0283]: type annotations needed
--> $DIR/multiple-impl-apply.rs:34:9
|
LL | let y = x.into();
| ^ ---- type must be known at this point
|
note: multiple `impl`s satisfying `_: From<Baz>` found
--> $DIR/multiple-impl-apply.rs:14:1
|
LL | impl From<Baz> for Bar {
| ^^^^^^^^^^^^^^^^^^^^^^
...
LL | impl From<Baz> for Foo {
| ^^^^^^^^^^^^^^^^^^^^^^
= note: required for `Baz` to implement `Into<_>`
help: consider giving `y` an explicit type
|
LL | let y: /* Type */ = x.into();
| ++++++++++++
```
- Lower the importance of `T: Sized`, `T: WellFormed` and coercion errors, to prioritize more relevant errors. The pre-existing deduplication logic deals with hiding redundant errors better that way, and we show errors with more metadata that is useful to the user.
- Show `<SelfTy as Trait>::assoc_fn` suggestion in more cases.
```
error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type
--> $DIR/cross-return-site-inference.rs:38:16
|
LL | return Err(From::from("foo"));
| ^^^^^^^^^^ cannot call associated function of trait
|
help: use a fully-qualified path to a specific available implementation
|
LL | return Err(</* self type */ as From>::from("foo"));
| +++++++++++++++++++ +
```
Fix #88284 .
2023-10-06 18:44:32 +00:00
..
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-02-23 10:27:06 -07:00
2023-10-05 00:56:29 -07:00
2023-10-06 18:44:32 +00:00
2023-03-22 21:12:40 -07:00
2023-08-14 15:25:20 +02:00
2023-05-25 02:45:14 +00:00
2023-05-25 02:45:14 +00:00
2023-04-12 16:17:31 +00:00
2023-04-12 16:17:31 +00:00
2023-04-12 16:17:31 +00:00
2023-09-11 16:53:39 +00:00
2023-09-11 16:53:39 +00:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-01-11 09:32:08 +00:00
2023-08-27 22:03:16 +00:00
2023-08-27 22:03:16 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-07-27 04:00:49 +00:00
2023-09-08 03:45:36 +00:00
2023-09-08 03:45:36 +00:00
2023-02-16 15:14:45 +11:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-09-08 03:45:36 +00:00
2023-09-08 03:45:36 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-06-18 22:52:30 +00:00
2023-09-21 08:17:58 +02:00
2023-09-21 08:17:58 +02:00
2023-10-04 02:04:14 +00:00
2023-10-04 02:04:14 +00:00
2023-07-07 13:13:18 +00:00
2023-07-14 12:35:33 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-06-11 00:19:56 +00:00
2023-06-11 00:19:56 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-05-18 01:53:01 +00:00
2023-05-18 01:53:01 +00:00
2023-02-22 09:44:26 +08:00
2023-01-11 09:32:08 +00:00
2023-01-30 21:51:33 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-06-27 23:31:06 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-05-13 10:51:21 +02:00
2023-05-13 10:51:21 +02:00
2023-05-13 10:51:21 +02:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-09-08 03:45:36 +00:00
2023-09-08 03:45:36 +00:00
2023-08-11 03:15:41 +00:00
2023-10-05 01:04:41 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-03-03 05:02:34 +00:00
2023-07-30 17:15:55 +02:00
2023-07-30 17:15:55 +02:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 21:30:10 +00:00
2023-01-11 21:30:10 +00:00
2023-01-11 09:32:08 +00:00
2023-04-06 23:01:40 -04:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-10-05 18:56:30 +03:00
2023-10-05 18:56:30 +03:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-05-12 10:26:50 +00:00
2023-06-22 15:00:12 +00:00
2023-07-07 13:13:18 +00:00
2023-07-07 13:13:18 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-04-20 15:06:17 -03:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-04-12 16:17:31 +00:00
2023-01-11 09:32:08 +00:00
2023-09-23 13:47:30 +00:00
2023-10-05 01:04:41 +00:00
2023-07-03 21:40:04 +00:00
2023-09-21 22:20:58 +02:00
2023-04-12 16:17:31 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-08-30 11:06:46 +00:00
2023-08-30 11:06:46 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-08-14 15:25:20 +02:00
2023-08-14 15:25:20 +02:00
2023-08-14 15:25:20 +02:00
2023-09-21 22:20:58 +02:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-02-13 16:23:23 +01:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-07-15 22:02:16 +00:00
2023-05-16 16:02:17 +00:00
2023-05-16 16:02:17 +00:00
2023-05-16 16:02:17 +00:00
2023-08-27 22:03:16 +00:00
2023-08-27 22:03:16 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-08-30 11:06:46 +00:00
2023-08-30 11:06:46 +00:00
2023-09-14 15:16:48 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-08-08 09:39:59 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-05-31 17:45:45 +00:00
2023-05-31 17:45:45 +00:00
2023-01-11 09:32:08 +00:00
2023-09-21 22:20:58 +02:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-10-04 19:51:43 +00:00
2023-10-04 19:51:43 +00:00
2023-01-11 09:32:08 +00:00
2023-09-21 22:20:58 +02:00
2023-01-11 09:32:08 +00:00
2023-09-21 22:20:58 +02:00
2023-01-11 09:32:08 +00:00
2023-06-16 19:39:48 +00:00
2023-03-23 06:19:52 +00:00
2023-01-11 09:32:08 +00:00
2023-06-16 19:39:48 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-06-16 19:39:48 +00:00
2023-03-23 06:19:52 +00:00
2023-01-11 09:32:08 +00:00
2023-09-21 22:20:58 +02:00
2023-01-11 09:32:08 +00:00
2023-08-04 15:11:09 +00:00
2023-08-04 15:11:09 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-04-12 22:50:10 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-06-27 21:36:15 +00:00
2023-07-27 15:51:02 +00:00
2023-09-20 03:02:14 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-30 20:12:19 +00:00
2023-09-25 17:41:08 +00:00
2023-10-04 02:04:14 +00:00
2023-05-18 01:53:01 +00:00
2023-05-18 01:53:01 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 19:46:45 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-07-06 11:37:21 +02:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:47:30 +00:00
2023-01-11 09:32:08 +00:00
2023-09-23 13:34:07 +00:00
2023-09-23 13:47:30 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-06-16 19:39:48 +00:00
2023-01-11 09:32:08 +00:00
2023-06-22 15:51:19 +00:00
2023-06-16 19:39:48 +00:00
2023-06-16 19:39:48 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-03-03 05:02:34 +00:00
2023-01-11 09:32:08 +00:00
2023-07-07 16:02:25 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-06-26 01:11:44 +09:00
2023-01-11 09:32:08 +00:00
2023-09-21 22:20:58 +02:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-04-12 16:17:31 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-04-12 22:50:10 +00:00
2023-06-26 19:14:49 +00:00
2023-06-26 19:14:49 +00:00
2023-01-11 09:32:08 +00:00
2023-01-30 20:12:19 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-08-28 01:05:34 +00:00
2023-08-28 01:05:34 +00:00
2023-04-25 19:53:09 +00:00
2023-01-11 09:32:08 +00:00
2023-10-04 02:04:14 +00:00
2023-10-04 19:51:43 +00:00
2023-10-04 19:51:43 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00