Matthias Krüger
a13d7dbecf
Rollup merge of #127878 - estebank:assoc-item-removal, r=fmease
...
Fix associated item removal suggestion
We were previously telling people to write what was already there, instead of removal (treating it as a `help`). We now properly suggest to remove the code that needs to be removed.
```
error[E0229]: associated item constraints are not allowed here
--> $DIR/E0229.rs:13:25
|
LL | fn baz<I>(x: &<I as Foo<A = Bar>>::A) {}
| ^^^^^^^ associated item constraint not allowed here
|
help: consider removing this associated item binding
|
LL - fn baz<I>(x: &<I as Foo<A = Bar>>::A) {}
LL + fn baz<I>(x: &<I as Foo>::A) {}
|
```
2024-07-18 08:09:01 +02:00
..
2024-05-04 11:30:38 +02:00
2024-04-16 15:19:12 +02:00
2024-02-22 16:04:04 +00:00
2024-07-12 03:02:57 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-03-29 13:31:35 -07:00
2024-07-11 12:23:44 +10:00
2024-07-04 00:40:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-04-02 21:22:04 +02:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2023-12-21 10:17:11 +08:00
2023-12-21 10:17:11 +08:00
2024-04-15 21:49:55 +02:00
2024-04-15 21:49:56 +02:00
2024-02-22 16:04:04 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-02-22 16:04:04 +00:00
2024-05-01 16:45:27 +02:00
2024-05-01 16:45:27 +02:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-07-04 00:40:04 +00:00
2024-06-28 08:01:07 +08:00
2024-06-28 08:01:07 +08:00
2024-06-28 08:01:07 +08:00
2024-06-28 08:01:07 +08:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-02-29 14:43:43 +01:00
2024-02-29 14:43:43 +01:00
2024-01-13 12:46:58 -05:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-07-12 18:18:30 -07:00
2024-02-22 16:04:04 +00:00
2024-04-15 15:11:49 -07:00
2024-06-03 03:50:15 +02:00
2024-02-22 16:04:04 +00:00
2024-07-11 12:23:44 +10:00
2024-04-09 13:58:52 +00:00
2024-04-15 15:11:49 -07:00
2024-07-12 18:18:30 -07:00
2024-07-12 18:18:30 -07:00
2024-07-17 21:30:40 +00:00
2024-02-22 16:04:04 +00:00
2024-03-29 13:31:35 -07:00
2024-07-04 00:40:04 +00:00
2023-11-24 19:15:52 +01:00
2024-02-22 16:04:04 +00:00
2024-05-30 22:52:33 +02:00
2024-07-17 21:30:40 +00:00
2023-10-31 13:58:03 +00:00
2023-10-31 13:58:03 +00:00
2023-11-24 19:15:52 +01:00
2024-03-28 11:09:08 +01:00
2024-02-22 16:04:04 +00:00
2024-03-29 13:31:35 -07:00
2024-02-22 16:04:04 +00:00
2024-05-30 22:52:33 +02:00
2024-07-17 21:30:40 +00:00
2024-03-07 14:26:31 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2023-11-24 19:15:52 +01:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-03-07 06:27:09 +00:00
2024-03-07 06:27:09 +00:00
2024-02-22 16:04:04 +00:00
2023-11-24 19:15:52 +01:00
2024-05-21 21:21:26 -07:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-04-13 19:32:39 -07:00
2024-07-11 12:23:44 +10:00
2024-06-09 10:34:54 -07:00
2024-07-11 12:23:44 +10:00
2024-06-09 10:34:54 -07:00
2024-07-11 12:23:44 +10:00
2024-06-09 10:34:54 -07:00
2023-11-24 19:15:52 +01:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-07-11 12:23:44 +10:00
2024-07-15 20:16:12 -04:00
2023-11-24 19:15:52 +01:00
2024-07-11 11:00:15 +00:00
2024-07-11 11:00:15 +00:00
2023-12-02 09:01:19 +11:00
2024-03-29 13:31:35 -07:00
2024-07-01 07:21:02 -07:00
2024-07-01 07:21:02 -07:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00