Skip to content

Commit 9ccb217

Browse files
committed
Update docs since path-based type search works now
1 parent f42f357 commit 9ccb217

File tree

1 file changed

+3
-3
lines changed
  • src/doc/rustdoc/src/read-documentation

1 file changed

+3
-3
lines changed

src/doc/rustdoc/src/read-documentation/search.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ the standard library and functions that are included in the results list:
7171
| [`option -> default`][] | `Option::unwrap_or_default` |
7272
| [`stdout, [u8]`][stdoutu8] | `Stdout::write` |
7373
| [`any -> !`][] | `panic::panic_any` |
74+
| [`vec::intoiter<T> -> [T]`][iterasslice] | `IntoIter::as_slice` |
7475

7576
[`usize -> vec`]: ../../std/vec/struct.Vec.html?search=usize%20-%3E%20vec&filter-crate=std
7677
[`vec, vec -> bool`]: ../../std/vec/struct.Vec.html?search=vec,%20vec%20-%3E%20bool&filter-crate=std
@@ -79,10 +80,11 @@ the standard library and functions that are included in the results list:
7980
[`option -> default`]: ../../std/vec/struct.Vec.html?search=option%20-%3E%20default&filter-crate=std
8081
[`any -> !`]: ../../std/vec/struct.Vec.html?search=any%20-%3E%20!&filter-crate=std
8182
[stdoutu8]: ../../std/vec/struct.Vec.html?search=stdout%2C%20[u8]&filter-crate=std
83+
[iterasslice]: ../../std/vec/struct.Vec.html?search=vec%3A%3Aintoiter<T>%20->%20[T]&filter-crate=std
8284

8385
### How type-based search works
8486

85-
In a complex type-based search, Rustdoc always treats every item as literal.
87+
In a complex type-based search, Rustdoc always treats every item's name as literal.
8688
If a name is used and nothing in the docs matches the individual item, such as
8789
a typo-ed [`uize -> vec`][] search, the item `uize` is treated as a generic
8890
type parameter (resulting in `vec::from` and other generic vec constructors).
@@ -155,8 +157,6 @@ Most of these limitations should be addressed in future version of Rustdoc.
155157
into the search field. Similarly, `Option<(T, U)>` can be matched with
156158
`Option<T, U>`, but `(` will give a parse error.
157159

158-
* Path searches, like `hash_map::Entry`, don't work in type-based search.
159-
160160
* Searching for lifetimes is not supported.
161161

162162
* It's impossible to search for closures based on their parameters or

0 commit comments

Comments
 (0)