mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
chore: remove repetitive words
Signed-off-by: goodmost <zhaohaiyang@outlook.com>
This commit is contained in:
parent
b91697de8f
commit
d6b0aae019
2 changed files with 2 additions and 2 deletions
|
@ -139,7 +139,7 @@ fn process_enum(
|
||||||
'variant: for variant in variants.variants() {
|
'variant: for variant in variants.variants() {
|
||||||
for attr in variant.attrs() {
|
for attr in variant.attrs() {
|
||||||
if check_cfg_attr(&attr, loc, db).map(|enabled| !enabled).unwrap_or_default() {
|
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());
|
debug!("censoring type {:?}", variant.syntax());
|
||||||
remove.insert(variant.syntax().clone().into());
|
remove.insert(variant.syntax().clone().into());
|
||||||
// We need to remove the , as well
|
// We need to remove the , as well
|
||||||
|
|
|
@ -462,7 +462,7 @@ pub(super) fn free_function<'a, DB: HirDatabase>(
|
||||||
|
|
||||||
/// # Impl method tactic
|
/// # 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.
|
/// 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
|
/// Methods defined in impl blocks that are generic and methods that are themselves have
|
||||||
/// generics are ignored for performance reasons.
|
/// generics are ignored for performance reasons.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue