diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-12-28 14:13:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-28 14:13:21 +0100 |
| commit | 80934aba1544ce65b71ec753ba9f83706bfa7fc5 (patch) | |
| tree | 80be5af55d14e3bd20d590940b788b1618b9f804 /compiler/rustc_resolve/src | |
| parent | 55b52ee33908f0ede42c549417093750530f9b1e (diff) | |
| parent | 0ae998e122d6e2cf00b55e109e4817860c468925 (diff) | |
| download | rust-80934aba1544ce65b71ec753ba9f83706bfa7fc5.tar.gz rust-80934aba1544ce65b71ec753ba9f83706bfa7fc5.zip | |
Rollup merge of #80411 - petrochenkov:nosymwith, r=matthewjasper
rustc_span: Remove `Symbol::with` A subset of https://github.com/rust-lang/rust/pull/79425 that is a pure refactoring.
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 { |
