rust/crates
bors[bot] 81fa00c5b5
Merge #5733
5733: Fix expand glob import bugs r=matklad a=unexge

fixes https://github.com/rust-analyzer/rust-analyzer/issues/5709

TODOs:
- [x] Incorrect node replacing
<details>
    <summary>Details</summary>

```rust
use crate::{
    body::scope::{ExprScopes, ScopeId},
    body::Body,
    builtin_type::BuiltinType,
    db::DefDatabase,
    expr::{ExprId, PatId},
    generics::GenericParams,
    item_scope::{BuiltinShadowMode, BUILTIN_SCOPE},
    nameres::CrateDefMap,
    path::*<|>,
    per_ns::PerNs,
    visibility::{RawVisibility, Visibility},
    AdtId, AssocContainerId, ConstId, ContainerId, DefWithBodyId, EnumId, EnumVariantId,
    FunctionId, GenericDefId, HasModule, ImplId, LocalModuleId, Lookup, ModuleDefId, ModuleId,
    StaticId, StructId, TraitId, TypeAliasId, TypeParamId, VariantId,
};
```
becames
```rust
use crate::{PathKind, name, name, ModPath};
```
</details>

- [x] Ignoring visibility
<details>
    <summary>Details</summary>

```rust
mod foo {
    mod bar {
        pub struct Bar;
    }
}

use foo::bar::*;

fn baz(bar: Bar) {}
```
becames
```rust
mod foo {
    mod bar {
        pub struct Bar;
    }
}

use foo::bar::Bar;

fn baz(bar: Bar) {}
```
although mod `bar` is private
</details>

- [x] Eating attributes

Co-authored-by: unexge <unexge@gmail.com>
2020-08-24 14:26:33 +00:00
..
arena Add TBD description to arena 2020-08-24 13:29:10 +02:00
assists Merge #5733 2020-08-24 14:26:33 +00:00
base_db Add description for crates that will be published 2020-08-24 13:07:22 +02:00
cfg Add description for crates that will be published 2020-08-24 13:07:22 +02:00
flycheck Add description for crates that will be published 2020-08-24 13:07:22 +02:00
hir Add description for crates that will be published 2020-08-24 13:07:22 +02:00
hir_def Add description for crates that will be published 2020-08-24 13:07:22 +02:00
hir_expand Add description for crates that will be published 2020-08-24 13:07:22 +02:00
hir_ty Add description for crates that will be published 2020-08-24 13:07:22 +02:00
ide Merge #4776 2020-08-24 11:14:45 +00:00
ide_db Add description for crates that will be published 2020-08-24 13:07:22 +02:00
mbe Add description for crates that will be published 2020-08-24 13:07:22 +02:00
parser Add description for crates that will be published 2020-08-24 13:07:22 +02:00
paths Add description for crates that will be published 2020-08-24 13:07:22 +02:00
proc_macro_api Add description for crates that will be published 2020-08-24 13:07:22 +02:00
proc_macro_srv Add description for crates that will be published 2020-08-24 13:07:22 +02:00
proc_macro_test Add description for crates that will be published 2020-08-24 13:07:22 +02:00
profile Add description for crates that will be published 2020-08-24 13:07:22 +02:00
project_model Add description for crates that will be published 2020-08-24 13:07:22 +02:00
rust-analyzer Add version to deps in cargo.toml 2020-08-24 11:10:41 +02:00
ssr Add version to deps in cargo.toml 2020-08-24 11:10:41 +02:00
stdx Add description for crates that will be published 2020-08-24 13:07:22 +02:00
syntax Merge #4776 2020-08-24 11:14:45 +00:00
test_utils Add description for crates that will be published 2020-08-24 13:07:22 +02:00
text_edit Add description for crates that will be published 2020-08-24 13:07:22 +02:00
toolchain Add description for crates that will be published 2020-08-24 13:07:22 +02:00
tt Add description for crates that will be published 2020-08-24 13:07:22 +02:00
vfs Add description for crates that will be published 2020-08-24 13:07:22 +02:00
vfs-notify Add description for crates that will be published 2020-08-24 13:07:22 +02:00