1
Fork 0

rustc_span: Ident::invalid -> Ident::empty

The equivalent for `Symbol`s was renamed some time ago (`kw::Invalid` -> `kw::Empty`), and it makes sense to do the same thing for `Ident`s.
This commit is contained in:
Vadim Petrochenkov 2021-10-17 23:20:30 +03:00
parent 8db8f48ea8
commit a6808335d4
20 changed files with 34 additions and 35 deletions

View file

@ -1453,7 +1453,7 @@ impl Ident {
}
#[inline]
pub fn invalid() -> Ident {
pub fn empty() -> Ident {
Ident::with_dummy_span(kw::Empty)
}