mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 13:33:31 +00:00
Fix typos
This commit is contained in:
parent
d922999ec6
commit
66f62836ae
5 changed files with 5 additions and 5 deletions
|
@ -85,7 +85,7 @@ fn edit_struct_def(
|
||||||
strukt: &Either<ast::Struct, ast::Variant>,
|
strukt: &Either<ast::Struct, ast::Variant>,
|
||||||
record_fields: ast::RecordFieldList,
|
record_fields: ast::RecordFieldList,
|
||||||
) {
|
) {
|
||||||
// Note that we don't need to consider macro files in this function because this this is
|
// Note that we don't need to consider macro files in this function because this is
|
||||||
// currently not triggered for struct definitions inside macro calls.
|
// currently not triggered for struct definitions inside macro calls.
|
||||||
let tuple_fields = record_fields
|
let tuple_fields = record_fields
|
||||||
.fields()
|
.fields()
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//! Implementation of find-usages functionality.
|
//! Implementation of find-usages functionality.
|
||||||
//!
|
//!
|
||||||
//! It is based on the standard ide trick: first, we run a fast text search to
|
//! It is based on the standard ide trick: first, we run a fast text search to
|
||||||
//! get a super-set of matches. Then, we we confirm each match using precise
|
//! get a super-set of matches. Then, we confirm each match using precise
|
||||||
//! name resolution.
|
//! name resolution.
|
||||||
|
|
||||||
use std::mem;
|
use std::mem;
|
||||||
|
|
|
@ -26,7 +26,7 @@ thread_local!(static IN_SCOPE: RefCell<bool> = const { RefCell::new(false) });
|
||||||
/// A wrapper around google_cpu_profiler.
|
/// A wrapper around google_cpu_profiler.
|
||||||
///
|
///
|
||||||
/// Usage:
|
/// Usage:
|
||||||
/// 1. Install gpref_tools (<https://github.com/gperftools/gperftools>), probably packaged with your Linux distro.
|
/// 1. Install gperf_tools (<https://github.com/gperftools/gperftools>), probably packaged with your Linux distro.
|
||||||
/// 2. Build with `cpu_profiler` feature.
|
/// 2. Build with `cpu_profiler` feature.
|
||||||
/// 3. Run the code, the *raw* output would be in the `./out.profile` file.
|
/// 3. Run the code, the *raw* output would be in the `./out.profile` file.
|
||||||
/// 4. Install pprof for visualization (<https://github.com/google/pprof>).
|
/// 4. Install pprof for visualization (<https://github.com/google/pprof>).
|
||||||
|
|
|
@ -45,7 +45,7 @@ impl<T> TaskPool<T> {
|
||||||
|
|
||||||
/// `TaskQueue`, like its name suggests, queues tasks.
|
/// `TaskQueue`, like its name suggests, queues tasks.
|
||||||
///
|
///
|
||||||
/// This should only be used used if a task must run after [`GlobalState::process_changes`]
|
/// This should only be used if a task must run after [`GlobalState::process_changes`]
|
||||||
/// has been called.
|
/// has been called.
|
||||||
pub(crate) struct TaskQueue {
|
pub(crate) struct TaskQueue {
|
||||||
pub(crate) sender: crossbeam_channel::Sender<QueuedTask>,
|
pub(crate) sender: crossbeam_channel::Sender<QueuedTask>,
|
||||||
|
|
|
@ -443,7 +443,7 @@ pub trait QueryDb<'d>: Sized {
|
||||||
/// Trait implements by all of the "special types" associated with
|
/// Trait implements by all of the "special types" associated with
|
||||||
/// each of your queries.
|
/// each of your queries.
|
||||||
pub trait Query: Debug + Default + Sized + for<'d> QueryDb<'d> {
|
pub trait Query: Debug + Default + Sized + for<'d> QueryDb<'d> {
|
||||||
/// Type that you you give as a parameter -- for queries with zero
|
/// Type that you give as a parameter -- for queries with zero
|
||||||
/// or more than one input, this will be a tuple.
|
/// or more than one input, this will be a tuple.
|
||||||
type Key: Clone + Debug + Hash + Eq;
|
type Key: Clone + Debug + Hash + Eq;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue