Reorder imports

This commit is contained in:
Jonas Schievink 2020-06-05 13:15:16 +02:00
parent 5f23f8ca44
commit 8395396782
3 changed files with 7 additions and 5 deletions

View File

@ -2,6 +2,7 @@
use hir_expand::name::{known, AsName, Name};
use ra_prof::profile;
use rustc_hash::FxHashSet;
use test_utils::mark;
use crate::{
@ -11,7 +12,6 @@ use crate::{
visibility::Visibility,
ModuleDefId, ModuleId,
};
use rustc_hash::FxHashSet;
// FIXME: handle local items

View File

@ -1,5 +1,10 @@
//! A map of all publicly exported items in a crate.
use std::{collections::hash_map::Entry, sync::Arc};
use ra_db::CrateId;
use rustc_hash::FxHashMap;
use crate::{
db::DefDatabase,
item_scope::ItemInNs,
@ -7,9 +12,6 @@ use crate::{
visibility::Visibility,
ModuleDefId, ModuleId,
};
use ra_db::CrateId;
use rustc_hash::FxHashMap;
use std::{collections::hash_map::Entry, sync::Arc};
/// A map from publicly exported items to the path needed to import/name them from a downstream
/// crate.

View File

@ -3,13 +3,13 @@
use hir_expand::name::Name;
use once_cell::sync::Lazy;
use ra_db::CrateId;
use rustc_hash::FxHashMap;
use crate::{
db::DefDatabase, per_ns::PerNs, visibility::Visibility, AdtId, BuiltinType, HasModule, ImplId,
Lookup, MacroDefId, ModuleDefId, TraitId,
};
use ra_db::CrateId;
#[derive(Debug, Default, PartialEq, Eq)]
pub struct ItemScope {