rustc_span: Remove Symbol::with
This commit is contained in:
parent
dc6121ca68
commit
0ae998e122
2 changed files with 7 additions and 10 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue