Replace dummy spans with empty spans

This commit is contained in:
Seiichi Uchida
2018-02-04 21:19:14 +09:00
parent d6bdf296a4
commit b5099a708d
16 changed files with 32 additions and 25 deletions

View File

@@ -1573,7 +1573,7 @@ impl<'a> State<'a> {
ti.ident,
ty,
default.as_ref().map(|expr| &**expr),
&codemap::dummy_spanned(ast::VisibilityKind::Inherited),
&codemap::respan(ti.span.empty(), ast::VisibilityKind::Inherited),
)?;
}
ast::TraitItemKind::Method(ref sig, ref body) => {
@@ -1584,7 +1584,7 @@ impl<'a> State<'a> {
ti.ident,
&ti.generics,
sig,
&codemap::dummy_spanned(ast::VisibilityKind::Inherited),
&codemap::respan(ti.span.empty(), ast::VisibilityKind::Inherited),
)?;
if let Some(ref body) = *body {
self.nbsp()?;