diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-07-01 20:29:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-01 20:29:58 +0200 |
| commit | 61fe6b6c0cfc68affc258107333aaed1c8949312 (patch) | |
| tree | ed380f0bac43e4302527c1a35583fdd3c83db4cb /compiler/rustc_codegen_llvm/src | |
| parent | f5810c4a514bad1c490ff79c4b49eef2f246b111 (diff) | |
| parent | 583b5fcad762d88dea0c1589e2aa6bff980848cd (diff) | |
| download | rust-61fe6b6c0cfc68affc258107333aaed1c8949312.tar.gz rust-61fe6b6c0cfc68affc258107333aaed1c8949312.zip | |
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
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
