1
Fork 0

rustc_span: Remove Symbol::with

This commit is contained in:
Vadim Petrochenkov 2020-12-27 18:10:58 +03:00
parent dc6121ca68
commit 0ae998e122
2 changed files with 7 additions and 10 deletions

View file

@ -2416,7 +2416,10 @@ impl<'a> Resolver<'a> {
} else if i == 0 {
if ident
.name
.with(|n| n.chars().next().map_or(false, |c| c.is_ascii_uppercase()))
.as_str()
.chars()
.next()
.map_or(false, |c| c.is_ascii_uppercase())
{
(format!("use of undeclared type `{}`", ident), None)
} else {