1
Fork 0

Guess head span of async blocks

This commit is contained in:
Oli Scherer 2022-01-27 16:22:22 +00:00
parent 7fd9c7e6de
commit 5518d1931d
4 changed files with 6 additions and 16 deletions

View file

@ -1680,6 +1680,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
));
let original_span = err.span.primary_span().unwrap();
let original_span = self.tcx.sess.source_map().guess_head_span(original_span);
let mut span = MultiSpan::from_span(original_span);
let message = outer_generator