Add more precise span informations to generic types
This commit is contained in:
parent
ba8d7e2cb7
commit
b1c8835a0f
5 changed files with 66 additions and 53 deletions
|
@ -695,13 +695,11 @@ impl<'a, 'tcx> WrongNumberOfGenericArgs<'a, 'tcx> {
|
|||
};
|
||||
|
||||
if remove_entire_generics {
|
||||
let sm = self.tcx.sess.source_map();
|
||||
|
||||
let span = self
|
||||
.path_segment
|
||||
.args
|
||||
.unwrap()
|
||||
.span_ext(sm)
|
||||
.span_ext()
|
||||
.unwrap()
|
||||
.with_lo(self.path_segment.ident.span.hi());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue