diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-04-12 08:47:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-12 08:47:00 +0200 |
| commit | 8d46f9cb5784b9eaea0c27fce151aeb341952c79 (patch) | |
| tree | fdf55226541bbddb5bf7ba89e60b70a243ed551b /library/std/src/sys/unix/process/process_unix.rs | |
| parent | 1b364ae5d6e09dde5e0cc6b2087d7e8fd64730e1 (diff) | |
| parent | d2b1bb8a9b7a0a73b8da36d12798f4e848ed7171 (diff) | |
| download | rust-8d46f9cb5784b9eaea0c27fce151aeb341952c79.tar.gz rust-8d46f9cb5784b9eaea0c27fce151aeb341952c79.zip | |
Rollup merge of #95920 - compiler-errors:cast-suggestion-span, r=oli-obk
use `Span::find_ancestor_inside` to get right span in CastCheck This is a quick fix. This bad suggestion likely lives in other places... but thought it would be useful to fix all of the CastCheck ones first. Let me know if reviewer would prefer I add more tests for each of the diagnostics in CastCheck, or would like to do a more thorough review of other suggestions that use spans in typeck. I would also be open to further suggestions on how to better expose an API that gives us the "best" span for a diagnostic suggestion. Fixed #95919
Diffstat (limited to 'library/std/src/sys/unix/process/process_unix.rs')
0 files changed, 0 insertions, 0 deletions
