Files
rust/compiler
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-06-27 15:19:08 -04:00
2024-06-28 15:44:20 +00:00
2024-07-01 05:17:13 -07:00
2024-06-28 15:44:20 +00:00