Guillaume Gomez
61fe6b6c0c
Rollup merge of #127129 - compiler-errors:full-expr-span, r=jieyouxu
...
Use full expr span for return suggestion on type error/ambiguity
We sometimes use parts of an expression rather than the whole thing for an obligation span. For example, a method obligation will just point to the path segment corresponding to the `method` in `rcvr.method(args)`.
So let's not use that assuming it'll point to the *whole* expression span, which we can access from the expr hir id we store in `ObligationCauseCode::WhereClauseInExpr`.
Fixes #127109
2024-07-01 20:29:58 +02:00
..
2024-05-02 19:48:29 +02:00
2024-06-25 15:51:35 +00:00
2024-06-12 15:49:10 +10:00
2024-06-27 15:19:08 -04:00
2024-06-12 15:49:10 +10:00
2024-06-28 10:57:35 +00:00
2024-06-29 22:10:57 +02:00
2024-06-27 15:19:08 -04:00
2024-06-18 15:42:11 +00:00
2024-06-12 15:49:10 +10:00
2024-07-01 06:35:58 +00:00
2024-06-27 15:19:08 -04:00
2024-06-30 11:28:14 +00:00
2024-06-21 19:30:26 +00:00
2024-06-29 22:10:55 +02:00
2024-07-01 14:19:51 +03:00
2024-06-29 20:08:10 +00:00
2024-06-28 10:26:45 +02:00
2024-06-12 15:49:10 +10:00
2024-06-25 09:35:53 +00:00
2024-06-12 11:10:50 +00:00
2024-06-12 15:49:10 +10:00
2024-07-01 06:35:58 +00:00
2024-06-27 02:06:19 -04:00
2024-06-30 19:31:21 +01:00
2024-06-12 15:49:10 +10:00
2024-06-20 09:23:20 +10:00
2024-06-12 15:49:10 +10:00
2024-06-28 15:44:20 +00:00
2024-07-01 08:53:07 +02:00
2024-06-28 10:57:35 +00:00
2024-07-01 20:29:58 +02:00
2024-06-12 15:49:10 +10:00
2024-06-12 15:49:10 +10:00
2024-06-16 14:08:25 +03:00
2024-07-01 06:35:58 +00:00
2024-06-28 18:15:12 +01:00
2024-06-12 15:49:10 +10:00
2024-06-30 18:25:31 +02:00
2024-07-01 00:25:25 +01:00
2024-06-27 05:44:47 +00:00
2024-06-12 10:11:41 +00:00
2024-06-18 15:42:11 +00:00
2024-06-29 20:08:10 +00:00
2024-06-29 20:08:10 +00:00
2024-06-30 19:02:25 +10:00
2024-07-01 06:35:58 +00:00
2024-07-01 05:17:13 -07:00
2024-06-18 15:42:11 +00:00
2024-06-29 20:08:10 +00:00
2024-06-29 09:14:59 +02:00
2024-06-12 15:49:10 +10:00
2024-06-29 22:10:59 +02:00
2024-06-23 04:28:42 -05:00
2024-06-17 10:09:27 +00:00
2024-06-19 08:47:55 +00:00
2024-06-25 15:51:35 +00:00
2024-06-27 15:19:08 -04:00
2024-06-24 11:28:21 -04:00
2024-06-12 15:49:10 +10:00
2024-07-01 05:17:13 -07:00
2024-06-28 10:57:35 +00:00
2024-06-30 19:31:21 +01:00
2024-06-18 15:42:11 +00:00
2024-06-24 17:58:21 +02:00
2024-07-01 06:35:58 +00:00
2024-06-12 15:49:10 +10:00
2024-06-14 21:11:08 +00:00
2024-06-28 15:44:20 +00:00
2024-06-29 20:08:10 +00:00
2024-05-11 18:20:00 -04:00
2024-06-28 13:24:41 +08:00