diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-12-27 18:10:58 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-12-27 18:10:58 +0300 |
| commit | 0ae998e122d6e2cf00b55e109e4817860c468925 (patch) | |
| tree | 1618e2197108fd0639bb3a1f13d199703e3df4c6 /compiler/rustc_resolve/src | |
| parent | dc6121ca681e3aef09b93afb13637632dcdc0e9a (diff) | |
| download | rust-0ae998e122d6e2cf00b55e109e4817860c468925.tar.gz rust-0ae998e122d6e2cf00b55e109e4817860c468925.zip | |
rustc_span: Remove `Symbol::with`
Diffstat (limited to 'compiler/rustc_resolve/src')
| -rw-r--r-- | compiler/rustc_resolve/src/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/lib.rs b/compiler/rustc_resolve/src/lib.rs index 5c79cfa9c1d..1f4bd00c3e2 100644 --- a/compiler/rustc_resolve/src/lib.rs +++ b/compiler/rustc_resolve/src/lib.rs @@ -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 { |
