diff options
| author | goodmost <zhaohaiyang@outlook.com> | 2024-03-19 22:14:13 +0800 |
|---|---|---|
| committer | goodmost <zhaohaiyang@outlook.com> | 2024-03-19 22:14:13 +0800 |
| commit | d6b0aae0190b738381f44aa15ddc5b81e6f08089 (patch) | |
| tree | 72524b1add66a46138425bc940c2763d75a2c6c9 | |
| parent | b91697de8f319c17650ddac01d98ac218f2ab617 (diff) | |
| download | rust-d6b0aae0190b738381f44aa15ddc5b81e6f08089.tar.gz rust-d6b0aae0190b738381f44aa15ddc5b81e6f08089.zip | |
chore: remove repetitive words
Signed-off-by: goodmost <zhaohaiyang@outlook.com>
| -rw-r--r-- | crates/hir-expand/src/cfg_process.rs | 2 | ||||
| -rw-r--r-- | crates/hir/src/term_search/tactics.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir-expand/src/cfg_process.rs b/crates/hir-expand/src/cfg_process.rs index c74c13a6fd3..68de05fafe2 100644 --- a/crates/hir-expand/src/cfg_process.rs +++ b/crates/hir-expand/src/cfg_process.rs @@ -139,7 +139,7 @@ fn process_enum( 'variant: for variant in variants.variants() { for attr in variant.attrs() { if check_cfg_attr(&attr, loc, db).map(|enabled| !enabled).unwrap_or_default() { - // Rustc does not strip the attribute if it is enabled. So we will will leave it + // Rustc does not strip the attribute if it is enabled. So we will leave it debug!("censoring type {:?}", variant.syntax()); remove.insert(variant.syntax().clone().into()); // We need to remove the , as well diff --git a/crates/hir/src/term_search/tactics.rs b/crates/hir/src/term_search/tactics.rs index 0ccca21e045..63b2a2506f8 100644 --- a/crates/hir/src/term_search/tactics.rs +++ b/crates/hir/src/term_search/tactics.rs @@ -462,7 +462,7 @@ pub(super) fn free_function<'a, DB: HirDatabase>( /// # Impl method tactic /// -/// Attempts to to call methods on types from lookup table. +/// Attempts to call methods on types from lookup table. /// This includes both functions from direct impl blocks as well as functions from traits. /// Methods defined in impl blocks that are generic and methods that are themselves have /// generics are ignored for performance reasons. |
