We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e14f9d2 commit f956b77Copy full SHA for f956b77
crates/hir-def/src/resolver.rs
@@ -911,7 +911,7 @@ fn hygiene_info(
911
) -> Option<(SyntaxContextId, MacroDefId)> {
912
if !hygiene_id.is_root() {
913
let ctx = hygiene_id.lookup();
914
- ctx.outer_expn(db).map(|expansion|{
+ ctx.outer_expn(db).map(|expansion| {
915
let expansion = db.lookup_intern_macro_call(expansion);
916
(ctx.parent(db), expansion.def)
917
})
crates/hir-expand/src/change.rs
@@ -1,8 +1,6 @@
1
//! Defines a unit of change that can applied to the database to get the next
2
//! state. Changes are transactional.
3
-use base_db::{
4
- CrateGraph, CrateId, CrateWorkspaceData, FileChange, SourceRoot,
5
-};
+use base_db::{CrateGraph, CrateId, CrateWorkspaceData, FileChange, SourceRoot};
6
use rustc_hash::FxHashMap;
7
use salsa::Durability;
8
use span::FileId;
crates/hir-ty/src/consteval.rs
@@ -16,10 +16,14 @@ use stdx::never;
16
use triomphe::Arc;
17
18
use crate::{
19
- db::{HirDatabase, HirDatabaseData}, display::DisplayTarget, generics::Generics, infer::InferenceContext,
20
- lower::ParamLoweringMode, mir::monomorphize_mir_body_bad, to_placeholder_idx, Const, ConstData,
21
- ConstScalar, ConstValue, GenericArg, Interner, MemoryMap, Substitution, TraitEnvironment, Ty,
22
- TyBuilder,
+ db::{HirDatabase, HirDatabaseData},
+ display::DisplayTarget,
+ generics::Generics,
+ infer::InferenceContext,
23
+ lower::ParamLoweringMode,
24
+ mir::monomorphize_mir_body_bad,
25
+ to_placeholder_idx, Const, ConstData, ConstScalar, ConstValue, GenericArg, Interner, MemoryMap,
26
+ Substitution, TraitEnvironment, Ty, TyBuilder,
27
};
28
29
use super::mir::{interpret_mir, lower_to_mir, pad16, MirEvalError, MirLowerError};
crates/hir-ty/src/db.rs
@@ -170,9 +170,7 @@ pub trait HirDatabase: DefDatabase + Upcast<dyn DefDatabase> + std::fmt::Debug {
170
#[salsa::invoke_actual(crate::lower::generic_predicates_query)]
171
fn generic_predicates(&self, def: GenericDefId) -> GenericPredicates;
172
173
- #[salsa::invoke_actual(
174
- crate::lower::generic_predicates_without_parent_with_diagnostics_query
175
- )]
+ #[salsa::invoke_actual(crate::lower::generic_predicates_without_parent_with_diagnostics_query)]
176
fn generic_predicates_without_parent_with_diagnostics(
177
&self,
178
def: GenericDefId,
crates/hir/src/semantics/source_to_def.rs
@@ -178,8 +178,7 @@ impl SourceToDefCtx<'_, '_> {
self.cache.file_to_def_cache.entry(file).or_insert_with(|| {
179
let mut mods = SmallVec::new();
180
181
- for &crate_id in
182
- Upcast::<dyn RootQueryDb>::upcast(self.db).relevant_crates(file).iter()
+ for &crate_id in Upcast::<dyn RootQueryDb>::upcast(self.db).relevant_crates(file).iter()
183
{
184
// Note: `mod` declarations in block modules cannot be supported here
185
let crate_def_map = self.db.crate_def_map(crate_id);
crates/ide-diagnostics/src/lib.rs
@@ -393,14 +393,7 @@ pub fn semantic_diagnostics(
393
(*db.crate_graph().crates_in_topological_order().last().unwrap()).into()
394
});
395
let display_target = krate.to_display_target(db);
396
- let ctx = DiagnosticsContext {
397
- config,
398
- sema,
399
- resolve,
400
- edition,
401
- is_nightly,
402
- display_target,
403
- };
+ let ctx = DiagnosticsContext { config, sema, resolve, edition, is_nightly, display_target };
404
405
let mut diags = Vec::new();
406
match module {
crates/ide/src/static_index.rs
@@ -3,7 +3,7 @@
use hir::{db::HirDatabase, Crate, HirFileIdExt, Module, Semantics};
use ide_db::{
- base_db::{SourceDatabase, RootQueryDb, VfsPath},
+ base_db::{RootQueryDb, SourceDatabase, VfsPath},
defs::Definition,
documentation::Documentation,
9
famous_defs::FamousDefs,
crates/ide/src/typing.rs
@@ -78,7 +78,7 @@ pub(crate) fn on_char_typed(
78
let edition = Edition::CURRENT_FIXME;
79
let editioned_file_id_wrapper = ide_db::base_db::EditionedFileId::new(
80
db.as_dyn_database(),
81
- EditionedFileId::new(position.file_id, edition)
+ EditionedFileId::new(position.file_id, edition),
82
);
83
let file = &db.parse(editioned_file_id_wrapper);
84
let char_matches_position =
0 commit comments