Skip to content

Commit e2536bb

Browse files
committed
Remove "length" doc aliases
1 parent fc2705d commit e2536bb

File tree

13 files changed

+0
-13
lines changed

13 files changed

+0
-13
lines changed

library/alloc/src/collections/binary_heap.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,6 @@ impl<T> BinaryHeap<T> {
10341034
///
10351035
/// assert_eq!(heap.len(), 2);
10361036
/// ```
1037-
#[doc(alias = "length")]
10381037
#[stable(feature = "rust1", since = "1.0.0")]
10391038
pub fn len(&self) -> usize {
10401039
self.data.len()

library/alloc/src/collections/btree/map.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2164,7 +2164,6 @@ impl<K, V> BTreeMap<K, V> {
21642164
/// a.insert(1, "a");
21652165
/// assert_eq!(a.len(), 1);
21662166
/// ```
2167-
#[doc(alias = "length")]
21682167
#[stable(feature = "rust1", since = "1.0.0")]
21692168
#[rustc_const_unstable(feature = "const_btree_new", issue = "71835")]
21702169
pub const fn len(&self) -> usize {

library/alloc/src/collections/btree/set.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,6 @@ impl<T> BTreeSet<T> {
10201020
/// v.insert(1);
10211021
/// assert_eq!(v.len(), 1);
10221022
/// ```
1023-
#[doc(alias = "length")]
10241023
#[stable(feature = "rust1", since = "1.0.0")]
10251024
#[rustc_const_unstable(feature = "const_btree_new", issue = "71835")]
10261025
pub const fn len(&self) -> usize {

library/alloc/src/collections/linked_list.rs

-1
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,6 @@ impl<T> LinkedList<T> {
586586
/// dl.push_back(3);
587587
/// assert_eq!(dl.len(), 3);
588588
/// ```
589-
#[doc(alias = "length")]
590589
#[inline]
591590
#[stable(feature = "rust1", since = "1.0.0")]
592591
pub fn len(&self) -> usize {

library/alloc/src/collections/vec_deque/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,6 @@ impl<T> VecDeque<T> {
10361036
/// v.push_back(1);
10371037
/// assert_eq!(v.len(), 1);
10381038
/// ```
1039-
#[doc(alias = "length")]
10401039
#[stable(feature = "rust1", since = "1.0.0")]
10411040
pub fn len(&self) -> usize {
10421041
count(self.tail, self.head, self.cap())

library/alloc/src/string.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1532,7 +1532,6 @@ impl String {
15321532
/// assert_eq!(fancy_f.len(), 4);
15331533
/// assert_eq!(fancy_f.chars().count(), 3);
15341534
/// ```
1535-
#[doc(alias = "length")]
15361535
#[inline]
15371536
#[stable(feature = "rust1", since = "1.0.0")]
15381537
pub fn len(&self) -> usize {

library/alloc/src/vec/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1813,7 +1813,6 @@ impl<T, A: Allocator> Vec<T, A> {
18131813
/// let a = vec![1, 2, 3];
18141814
/// assert_eq!(a.len(), 3);
18151815
/// ```
1816-
#[doc(alias = "length")]
18171816
#[inline]
18181817
#[stable(feature = "rust1", since = "1.0.0")]
18191818
pub fn len(&self) -> usize {

library/core/src/iter/traits/exact_size.rs

-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ pub trait ExactSizeIterator: Iterator {
9797
///
9898
/// assert_eq!(5, five.len());
9999
/// ```
100-
#[doc(alias = "length")]
101100
#[inline]
102101
#[stable(feature = "rust1", since = "1.0.0")]
103102
fn len(&self) -> usize {

library/core/src/slice/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ impl<T> [T] {
9595
/// let a = [1, 2, 3];
9696
/// assert_eq!(a.len(), 3);
9797
/// ```
98-
#[doc(alias = "length")]
9998
#[cfg_attr(not(bootstrap), lang = "slice_len_fn")]
10099
#[stable(feature = "rust1", since = "1.0.0")]
101100
#[rustc_const_stable(feature = "const_slice_len", since = "1.39.0")]

library/core/src/str/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ impl str {
138138
/// assert_eq!("ƒoo".len(), 4); // fancy f!
139139
/// assert_eq!("ƒoo".chars().count(), 3);
140140
/// ```
141-
#[doc(alias = "length")]
142141
#[stable(feature = "rust1", since = "1.0.0")]
143142
#[rustc_const_stable(feature = "const_str_len", since = "1.39.0")]
144143
#[inline]

library/std/src/collections/hash/map.rs

-1
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,6 @@ impl<K, V, S> HashMap<K, V, S> {
454454
/// a.insert(1, "a");
455455
/// assert_eq!(a.len(), 1);
456456
/// ```
457-
#[doc(alias = "length")]
458457
#[stable(feature = "rust1", since = "1.0.0")]
459458
pub fn len(&self) -> usize {
460459
self.base.len()

library/std/src/collections/hash/set.rs

-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ impl<T, S> HashSet<T, S> {
202202
/// v.insert(1);
203203
/// assert_eq!(v.len(), 1);
204204
/// ```
205-
#[doc(alias = "length")]
206205
#[inline]
207206
#[stable(feature = "rust1", since = "1.0.0")]
208207
pub fn len(&self) -> usize {

library/std/src/ffi/os_str.rs

-1
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,6 @@ impl OsStr {
694694
/// let os_str = OsStr::new("foo");
695695
/// assert_eq!(os_str.len(), 3);
696696
/// ```
697-
#[doc(alias = "length")]
698697
#[stable(feature = "osstring_simple_functions", since = "1.9.0")]
699698
#[inline]
700699
pub fn len(&self) -> usize {

0 commit comments

Comments
 (0)