1
Fork 0

diagnostics: use correct span for const generics

Fixes #95616
This commit is contained in:
Michael Howell 2022-04-04 12:16:20 -07:00
parent d5139f4469
commit 6ece80fcb6
32 changed files with 91 additions and 56 deletions

View file

@ -2068,7 +2068,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
hir::GenericParam {
hir_id,
name,
span: self.lower_span(param.ident.span),
span: self.lower_span(param.span()),
pure_wrt_drop: self.sess.contains_name(&param.attrs, sym::may_dangle),
bounds: self.arena.alloc_from_iter(bounds),
kind,