Skip to content

Commit b562603

Browse files
committed
Auto merge of #17241 - blyxyas:fix-typos, r=lnicola
Chore: Fix some typos rust-lang/rust#124948 > In RA we gladly take typo fixes, but for now we definitely want them in the upstream repository.
2 parents d922999 + 66f6283 commit b562603

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fn edit_struct_def(
8585
strukt: &Either<ast::Struct, ast::Variant>,
8686
record_fields: ast::RecordFieldList,
8787
) {
88-
// Note that we don't need to consider macro files in this function because this this is
88+
// Note that we don't need to consider macro files in this function because this is
8989
// currently not triggered for struct definitions inside macro calls.
9090
let tuple_fields = record_fields
9191
.fields()

crates/ide-db/src/search.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Implementation of find-usages functionality.
22
//!
33
//! It is based on the standard ide trick: first, we run a fast text search to
4-
//! get a super-set of matches. Then, we we confirm each match using precise
4+
//! get a super-set of matches. Then, we confirm each match using precise
55
//! name resolution.
66
77
use std::mem;

crates/profile/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ thread_local!(static IN_SCOPE: RefCell<bool> = const { RefCell::new(false) });
2626
/// A wrapper around google_cpu_profiler.
2727
///
2828
/// Usage:
29-
/// 1. Install gpref_tools (<https://github.com/gperftools/gperftools>), probably packaged with your Linux distro.
29+
/// 1. Install gperf_tools (<https://github.com/gperftools/gperftools>), probably packaged with your Linux distro.
3030
/// 2. Build with `cpu_profiler` feature.
3131
/// 3. Run the code, the *raw* output would be in the `./out.profile` file.
3232
/// 4. Install pprof for visualization (<https://github.com/google/pprof>).

crates/rust-analyzer/src/task_pool.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl<T> TaskPool<T> {
4545

4646
/// `TaskQueue`, like its name suggests, queues tasks.
4747
///
48-
/// This should only be used used if a task must run after [`GlobalState::process_changes`]
48+
/// This should only be used if a task must run after [`GlobalState::process_changes`]
4949
/// has been called.
5050
pub(crate) struct TaskQueue {
5151
pub(crate) sender: crossbeam_channel::Sender<QueuedTask>,

crates/salsa/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ pub trait QueryDb<'d>: Sized {
443443
/// Trait implements by all of the "special types" associated with
444444
/// each of your queries.
445445
pub trait Query: Debug + Default + Sized + for<'d> QueryDb<'d> {
446-
/// Type that you you give as a parameter -- for queries with zero
446+
/// Type that you give as a parameter -- for queries with zero
447447
/// or more than one input, this will be a tuple.
448448
type Key: Clone + Debug + Hash + Eq;
449449

0 commit comments

Comments
 (0)