Skip to content

Commit f3d84e8

Browse files
committed
minor: fix typo
1 parent af174b9 commit f3d84e8

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

crates/hir/src/term_search/tactics.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,14 +281,14 @@ pub(super) fn type_constructor<'a, DB: HirDatabase>(
281281
if ctx.config.enable_borrowcheck && struct_ty.contains_reference(db) {
282282
return None;
283283
}
284-
let fileds = it.fields(db);
284+
let fields = it.fields(db);
285285
// Check if all fields are visible, otherwise we cannot fill them
286-
if fileds.iter().any(|it| !it.is_visible_from(db, module)) {
286+
if fields.iter().any(|it| !it.is_visible_from(db, module)) {
287287
return None;
288288
}
289289

290290
// Early exit if some param cannot be filled from lookup
291-
let param_exprs: Vec<Vec<Expr>> = fileds
291+
let param_exprs: Vec<Vec<Expr>> = fields
292292
.into_iter()
293293
.map(|field| lookup.find(db, &field.ty(db)))
294294
.collect::<Option<_>>()?;

crates/ide-completion/src/item.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ impl CompletionRelevance {
308308

309309
// When a fn is bumped due to return type:
310310
// Bump Constructor or Builder methods with no arguments,
311-
// over them tha with self arguments
311+
// over them than with self arguments
312312
if fn_score > 0 {
313313
if !asf.has_params {
314314
// bump associated functions

crates/rust-analyzer/tests/slow-tests/support.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ impl Server {
243243
to_string_pretty(actual_part).unwrap(),
244244
);
245245
} else {
246-
tracing::debug!("sucessfully matched notification");
246+
tracing::debug!("successfully matched notification");
247247
return;
248248
}
249249
} else {

crates/salsa/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,12 +456,12 @@ pub trait Query: Debug + Default + Sized + for<'d> QueryDb<'d> {
456456
/// Name of the query method (e.g., `foo`)
457457
const QUERY_NAME: &'static str;
458458

459-
/// Extact storage for this query from the storage for its group.
459+
/// Extract storage for this query from the storage for its group.
460460
fn query_storage<'a>(
461461
group_storage: &'a <Self as QueryDb<'_>>::GroupStorage,
462462
) -> &'a std::sync::Arc<Self::Storage>;
463463

464-
/// Extact storage for this query from the storage for its group.
464+
/// Extract storage for this query from the storage for its group.
465465
fn query_storage_mut<'a>(
466466
group_storage: &'a <Self as QueryDb<'_>>::GroupStorage,
467467
) -> &'a std::sync::Arc<Self::Storage>;

crates/salsa/src/lru.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub(crate) trait LruNode: Sized + Debug {
4040

4141
#[derive(Debug)]
4242
pub(crate) struct LruIndex {
43-
/// Index in the approprate LRU list, or std::usize::MAX if not a
43+
/// Index in the appropriate LRU list, or std::usize::MAX if not a
4444
/// member.
4545
index: AtomicUsize,
4646
}

0 commit comments

Comments
 (0)