]> git.lizzy.rs Git - rust.git/commitdiff
fmt
authorAleksey Kladov <aleksey.kladov@gmail.com>
Thu, 13 Aug 2020 08:32:19 +0000 (10:32 +0200)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Thu, 13 Aug 2020 08:36:04 +0000 (10:36 +0200)
crates/ra_hir_def/src/attr.rs
crates/ra_hir_def/src/body.rs
crates/ra_hir_def/src/nameres/collector.rs
crates/ra_ide/src/runnables.rs
crates/ra_project_model/src/lib.rs
crates/rust-analyzer/src/cargo_target_spec.rs

index 1e5b06ca025ed50a30720da5bb5de06886d89b8b..dea552a605a4bbf664accf316a8f5a341eb535fd 100644 (file)
@@ -2,10 +2,10 @@
 
 use std::{ops, sync::Arc};
 
+use cfg::{CfgExpr, CfgOptions};
 use either::Either;
 use hir_expand::{hygiene::Hygiene, AstId, InFile};
 use mbe::ast_to_token_tree;
-use cfg::{CfgExpr, CfgOptions};
 use syntax::{
     ast::{self, AstNode, AttrsOwner},
     SmolStr,
index 3568513d1e0b78af00cab1e50393ac728bd0b8e8..fe659386a3d2a25f03745991a7fd956a7a2ebe19 100644 (file)
@@ -6,10 +6,10 @@
 use std::{mem, ops::Index, sync::Arc};
 
 use arena::{map::ArenaMap, Arena};
+use cfg::CfgOptions;
 use drop_bomb::DropBomb;
 use either::Either;
 use hir_expand::{ast_id_map::AstIdMap, hygiene::Hygiene, AstId, HirFileId, InFile, MacroDefId};
-use cfg::CfgOptions;
 use ra_db::CrateId;
 use rustc_hash::FxHashMap;
 use syntax::{ast, AstNode, AstPtr};
index fa2dadfc5b5e0e6833fa673177692c500579dad7..6a58919360f4c089e5d4b38d3766c8359d5f8737 100644 (file)
@@ -3,6 +3,7 @@
 //! `DefCollector::collect` contains the fixed-point iteration loop which
 //! resolves imports and expands macros.
 
+use cfg::CfgOptions;
 use hir_expand::{
     ast_id_map::FileAstId,
     builtin_derive::find_builtin_derive,
@@ -11,7 +12,6 @@
     proc_macro::ProcMacroExpander,
     HirFileId, MacroCallId, MacroDefId, MacroDefKind,
 };
-use cfg::CfgOptions;
 use ra_db::{CrateId, FileId, ProcMacroId};
 use rustc_hash::FxHashMap;
 use syntax::ast;
index 7d8a210b7fd79d33a9117c5e77360fad5f0b22f3..fb40762cfb204a4072cb3e63d22ec5de7fa61919 100644 (file)
@@ -1,8 +1,8 @@
 use std::fmt;
 
+use cfg::CfgExpr;
 use hir::{AsAssocItem, Attrs, HirFileId, InFile, Semantics};
 use itertools::Itertools;
-use cfg::CfgExpr;
 use ra_ide_db::RootDatabase;
 use syntax::{
     ast::{self, AstNode, AttrsOwner, DocCommentsOwner, ModuleItemOwner, NameOwner},
index 47e7d24203c79b6d88c682d6463f9e39551cda2d..ee42198f35b45368935e4d44bd8c141b7da39dd2 100644 (file)
@@ -12,8 +12,8 @@
 };
 
 use anyhow::{bail, Context, Result};
-use paths::{AbsPath, AbsPathBuf};
 use cfg::CfgOptions;
+use paths::{AbsPath, AbsPathBuf};
 use ra_db::{CrateGraph, CrateId, CrateName, Edition, Env, FileId};
 use rustc_hash::{FxHashMap, FxHashSet};
 
index 87ddd25bf2ad7377a65460d236a90bf2c05e99f2..9c7a9cce61766de38fa74fefebb584d6eb09b08a 100644 (file)
@@ -177,8 +177,8 @@ fn required_features(cfg_expr: &CfgExpr, features: &mut Vec<String>) {
 mod tests {
     use super::*;
 
-    use mbe::ast_to_token_tree;
     use cfg::CfgExpr;
+    use mbe::ast_to_token_tree;
     use syntax::{
         ast::{self, AstNode},
         SmolStr,