mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Replace x with it
This commit is contained in:
parent
4125fea0a7
commit
3a1054fc1c
42 changed files with 590 additions and 582 deletions
|
|
@ -276,13 +276,13 @@ impl Attrs {
|
|||
}
|
||||
|
||||
pub fn is_test(&self) -> bool {
|
||||
self.iter().any(|x| {
|
||||
x.path()
|
||||
self.iter().any(|it| {
|
||||
it.path()
|
||||
.segments()
|
||||
.iter()
|
||||
.rev()
|
||||
.zip(["core", "prelude", "v1", "test"].iter().rev())
|
||||
.all(|x| x.0.as_str() == Some(x.1))
|
||||
.all(|it| it.0.as_str() == Some(it.1))
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -304,7 +304,7 @@ use std::slice::Iter as SliceIter;
|
|||
pub enum DocAtom {
|
||||
/// eg. `#[doc(hidden)]`
|
||||
Flag(SmolStr),
|
||||
/// eg. `#[doc(alias = "x")]`
|
||||
/// eg. `#[doc(alias = "it")]`
|
||||
///
|
||||
/// Note that a key can have multiple values that are all considered "active" at the same time.
|
||||
/// For example, `#[doc(alias = "x")]` and `#[doc(alias = "y")]`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue