Guess head span of async blocks
This commit is contained in:
parent
7fd9c7e6de
commit
5518d1931d
4 changed files with 6 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue