diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-02-13 18:12:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-13 18:12:35 +0100 |
| commit | 8a4f8e6adcfdb5289f35a9f1049089e4dba1efb6 (patch) | |
| tree | 991bf85b10b5babfbc22b79656d24f1b6d275578 /src/rustllvm/RustWrapper.cpp | |
| parent | b39b62534d4d7a569926dab23d958458278f9d69 (diff) | |
| parent | 48b0c9da69965cd40d037cee42cf3093ed09c6ee (diff) | |
| download | rust-8a4f8e6adcfdb5289f35a9f1049089e4dba1efb6.tar.gz rust-8a4f8e6adcfdb5289f35a9f1049089e4dba1efb6.zip | |
Rollup merge of #58381 - davidtwco:issue-42944, r=estebank
Only suggest imports if not imported. Fixes #42944 and fixes #53430. This commit modifies name resolution error reporting so that if a name is in scope and has been imported then we do not suggest importing it. This can occur when we add a label about constructors not being visible due to private fields. In these cases, we know that the struct/variant has been imported and we should silence any suggestions to import the struct/variant. r? @estebank
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
