about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-04-12 08:47:00 +0200
committerGitHub <noreply@github.com>2022-04-12 08:47:00 +0200
commit8d46f9cb5784b9eaea0c27fce151aeb341952c79 (patch)
treefdf55226541bbddb5bf7ba89e60b70a243ed551b /compiler/rustc_codegen_gcc
parent1b364ae5d6e09dde5e0cc6b2087d7e8fd64730e1 (diff)
parentd2b1bb8a9b7a0a73b8da36d12798f4e848ed7171 (diff)
downloadrust-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 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions