summary refs log tree commit diff
path: root/src/test/rustdoc
AgeCommit message (Collapse)AuthorLines
2015-12-16Rollup merge of #30372 - sanxiyn:rustdoc-cfg, r=alexcrichtonManish Goregaokar-0/+16
Fix #30252.
2015-12-15Use --cfg when running doctestsSeo Sanghyeon-0/+16
Previously passed --cfg was used only when collecting doctests.
2015-12-12Support `#[deprecated]` in rustdocVadim Petrochenkov-0/+16
2015-12-08Auto merge of #30036 - mitaa:doc_id, r=alexcrichtonbors-0/+83
This expands the code which generates unique IDs for Markdown headers within a single block to each rendered page. fixes #25001 fixes #29449
2015-12-05std: Stabilize APIs for the 1.6 releaseAlex Crichton-2/+1
This commit is the standard API stabilization commit for the 1.6 release cycle. The list of issues and APIs below have all been through their cycle-long FCP and the libs team decisions are listed below Stabilized APIs * `Read::read_exact` * `ErrorKind::UnexpectedEof` (renamed from `UnexpectedEOF`) * libcore -- this was a bit of a nuanced stabilization, the crate itself is now marked as `#[stable]` and the methods appearing via traits for primitives like `char` and `str` are now also marked as stable. Note that the extension traits themeselves are marked as unstable as they're imported via the prelude. The `try!` macro was also moved from the standard library into libcore to have the same interface. Otherwise the functions all have copied stability from the standard library now. * The `#![no_std]` attribute * `fs::DirBuilder` * `fs::DirBuilder::new` * `fs::DirBuilder::recursive` * `fs::DirBuilder::create` * `os::unix::fs::DirBuilderExt` * `os::unix::fs::DirBuilderExt::mode` * `vec::Drain` * `vec::Vec::drain` * `string::Drain` * `string::String::drain` * `vec_deque::Drain` * `vec_deque::VecDeque::drain` * `collections::hash_map::Drain` * `collections::hash_map::HashMap::drain` * `collections::hash_set::Drain` * `collections::hash_set::HashSet::drain` * `collections::binary_heap::Drain` * `collections::binary_heap::BinaryHeap::drain` * `Vec::extend_from_slice` (renamed from `push_all`) * `Mutex::get_mut` * `Mutex::into_inner` * `RwLock::get_mut` * `RwLock::into_inner` * `Iterator::min_by_key` (renamed from `min_by`) * `Iterator::max_by_key` (renamed from `max_by`) Deprecated APIs * `ErrorKind::UnexpectedEOF` (renamed to `UnexpectedEof`) * `OsString::from_bytes` * `OsStr::to_cstring` * `OsStr::to_bytes` * `fs::walk_dir` and `fs::WalkDir` * `path::Components::peek` * `slice::bytes::MutableByteVector` * `slice::bytes::copy_memory` * `Vec::push_all` (renamed to `extend_from_slice`) * `Duration::span` * `IpAddr` * `SocketAddr::ip` * `Read::tee` * `io::Tee` * `Write::broadcast` * `io::Broadcast` * `Iterator::min_by` (renamed to `min_by_key`) * `Iterator::max_by` (renamed to `max_by_key`) * `net::lookup_addr` New APIs (still unstable) * `<[T]>::sort_by_key` (added to mirror `min_by_key`) Closes #27585 Closes #27704 Closes #27707 Closes #27710 Closes #27711 Closes #27727 Closes #27740 Closes #27744 Closes #27799 Closes #27801 cc #27801 (doesn't close as `Chars` is still unstable) Closes #28968
2015-12-05Add testsmitaa-0/+83
2015-12-03Use the extern item-path for documentation linksmitaa-0/+24
The local item-path includes the local crates path to the extern crate declaration which breaks cross-crate rustdoc links if the extern crate is not linked into the crate root or renamed via `extern foo as bar`.
2015-11-28Auto merge of #30074 - jonas-schievink:macro-doc, r=sanxiynbors-0/+20
Fixes #17616 New docs for `panic!`: ```rust macro_rules! panic { () => { ... }; ($msg:expr) => { ... }; ($fmt:expr, $($arg:tt)+) => { ... }; } ``` New docs for `assert!`: ```rust macro_rules! assert { ( $ cond : expr ) => { ... }; ( $ cond : expr , $ ( $ arg : tt ) + ) => { ... }; } ``` <sup>not pretty, but at least it's not worse :joy:
2015-11-28Add a testJonas Schievink-0/+20
2015-11-25Remove all uses of `#[staged_api]`Vadim Petrochenkov-2/+0
2015-11-19Show constness for functions of reexported docsmitaa-0/+19
2015-11-18Add missing annotations and some testsVadim Petrochenkov-0/+3
2015-11-13Store a valid name for the root module in metadatamitaa-0/+16
2015-11-02librustdoc: ignore lint warnings when compiling documentationKevin Butler-0/+20
2015-09-20Miscellaneous cleanup for old issues.Lee Jeffery-4/+0
2015-08-25Auto merge of #27945 - Eljay:upgrade-hoedown, r=alexcrichtonbors-0/+15
Some hoedown FFI changes: - `HOEDOWN_EXT_NO_INTRA_EMPHASIS` constant changed. - Updated/tidied up all callback function signatures. - All opaque data access has an additional layer of indirection for some reason (`hoedown_renderer_data`). This also fixes #27862.
2015-08-24Update hoedown to latest version (3.0.4).Eljay-0/+15
2015-08-23Auto merge of #27919 - Eljay:doc-varargs, r=alexcrichtonbors-0/+14
Fixes #27876.
2015-08-20Show variadic args in rustdoc output.Lee Jeffery-0/+14
2015-08-17rustdoc: Add test for #27759Martin WernstÄl-0/+25
2015-08-08rustc: rename multiple imports in a listSean McArthur-0/+28
2015-08-03syntax: Implement #![no_core]Alex Crichton-2/+0
This commit is an implementation of [RFC 1184][rfc] which tweaks the behavior of the `#![no_std]` attribute and adds a new `#![no_core]` attribute. The `#![no_std]` attribute now injects `extern crate core` at the top of the crate as well as the libcore prelude into all modules (in the same manner as the standard library's prelude). The `#![no_core]` attribute disables both std and core injection. [rfc]: https://github.com/rust-lang/rfcs/pull/1184
2015-07-21Auto merge of #27103 - wthrowe:doc_format, r=alexcrichtonbors-0/+53
This fixes a couple of bugs visible on https://doc.rust-lang.org/nightly/std/marker/trait.Sync.html . For example: * `impl<T> Sync for *const T` should read `impl<T> !Sync for *const T` * `impl<T> !Sync for Weak<T>` should read `impl<T> !Sync for Weak<T> where T: ?Sized` This does change a struct in librustdoc and it seems that almost everything there is marked public, so if librustdoc has stability guarantees that could be a problem. If it is, I'll find a way to rework the change to avoid modifying public structures.
2015-07-20Add test of cross-crate impl formattingWilliam Throwe-0/+30
2015-07-19Add test of impl formattingWilliam Throwe-0/+23
2015-07-18Fix doc comment parsing in macros.Lee Jeffery-0/+46
2015-06-13Use `assert_eq!` instead of `assert!` in testspetrochenkov-1/+1
2015-05-26Auto merge of #25675 - bluss:rustdoc-assoc-types-index, r=alexcrichtonbors-0/+36
rustdoc: Associated type fixes The first commit fixes a bug with "dud" items in the search index from misrepresented `type` items in trait impl blocks. For a trait *implementation* there are typedefs which are the types for that particular trait and implementor. Skip these in the search index. There were lots of dud items in the search index due to this (search for Item, Iterator's associated type). Add a boolean to clean::TypedefItem so that it tracks whether the it is a type alias on its own, or if it's a `type` item in a trait impl. The second commit fixes a bug that made signatures and where bounds using associated types (if they were not on `Self`) incorrect. The third commit fixes so that where clauses in type alias definititons are shown. Fixes #22442 Fixes #24417 Fixes #25769
2015-05-25rustdoc: Show where clauses in type aliasesUlrik Sverdrup-0/+4
Yes, it's allowed. Example: type MapFn<I, B> where I: Iterator = Map<I, fn(I::Item) -> B>; Fixes #25769
2015-05-25rustdoc: Fix associated types in signaturesUlrik Sverdrup-0/+22
Functions such as `fn foo<I: Iterator>(x: I::Item)` would not render correctly and displayed `I` instead of `I::Item`. Same thing with `I::Item` appearing in where bounds. This fixes the bug by using paths for generics. Fixes #24417
2015-05-25Rustdoc: ignore deref-inherited static methodsAdolfo OchagavĂ­a-1/+6
Fixes #24575
2015-05-21rustdoc: Skip types in impls in search indexUlrik Sverdrup-0/+10
For a trait *implementation* there are typedefs which are the types for that particular trait and implementor. Skip these in the search index. There were lots of dud items in the search index due to this (search for Item, Iterator's associated type). Add a boolean to clean::TypedefItem so that it tracks whether the it is a type alias on its own, or if it's a `type` item in a trait impl. Fixes #22442
2015-05-09rustdoc: Add Associated Constants sectionUlrik Sverdrup-0/+1
Section only visible if there are assoc. consts. present.
2015-04-30rustdoc: Fix rendering associated constantsAlex Crichton-0/+25
Associated constants were now showing up for traits and would panic if they were found on an inherent impl. This commit unblocks the nighly builders.
2015-04-22Replace ignore-android with ignore-cross-compile in rustdoc testsRyan Prichard-19/+19
The problem is that rustdoc searches for external crates using the host triple, not the target triple. It's actually unclear to me whether this is correct behavior or not, but it is necessary to get cross-compiled tests working.
2015-04-16rustdoc: Inline methods inhereted through DerefAlex Crichton-0/+83
Whenever a type implements Deref, rustdoc will now add a section to the "methods available" sections for "Methods from Deref<Target=Foo>", listing all the inherent methods of the type `Foo`. Closes #19190
2015-04-10Test fixes and review feedbackAlex Crichton-0/+18
2015-04-07rustdoc: Add a test for should_fail in doctestsAlex Crichton-0/+22
Closes #23744
2015-04-07rustdoc: Index inherent methods on primitivesAlex Crichton-0/+24
The set of types which can have an inherent impl changed slightly and rustdoc just needed to catch up to understand what it means to see a `impl str`! Closes #23511
2015-04-07rustdoc: Handle duplicate reexports listedAlex Crichton-0/+19
This ends up causing duplicate output in rustdoc. The source of these duplicates is that the item is defined in both resolve namespaces, so it's listed twice. Closes #23207
2015-04-07rustdoc: Handle tests with bare `#` marksAlex Crichton-0/+17
Strip them from output like other `# `-starting lines. Closes #23106
2015-04-07rustdoc: Encode ABI in all methodsAlex Crichton-2/+46
This commit ensures that the ABI of functions is propagated all the way through to the documentation. Closes #22038
2015-04-07rustdoc: Simplify predicates with paren notationAlex Crichton-0/+18
This change is aimed at improving cross-crate (inlined) notation of generic closures. The change modifies `simplify::where_predicates` to handle parenthesized notation as well as starting to handle supertrait bounds as well. This was necessary because all output constraints of closures are bound to `FnOnce` but most trait bounds are that of `FnMut`. Close #21801
2015-04-07rustdoc: Detect provided methods on inlined traitsAlex Crichton-2/+20
Closes #23864
2015-04-07rustdoc: Don't duplicate inlined impl blocksAlex Crichton-0/+21
Closes #21474
2015-04-07rustdoc: Add a test for #21092Alex Crichton-0/+17
Close #21092
2015-04-07rustdoc: Improve handling inlined associated typesAlex Crichton-0/+147
* All bounds are now discovered through the trait to be inlined. * The `?Sized` bound now renders correctly for inlined associated types. * All `QPath`s (`<A as B>::C`) instances are rendered as `A::C` where `C` is a hyperlink to the trait `B`. This should improve at least how the docs look at least. * Supertrait bounds are now separated and display as the source lists them. Closes #20727 Closes #21145
2015-04-07rustdoc: Simplify cross-crate where clausesAlex Crichton-0/+35
Add a custom module to rustdoc which simplifies the output of `middle::ty` into a more readable form which tends to be written down anyway! Closes #20646
2015-04-07rustdoc: Show impls for references to typesAlex Crichton-0/+20
It's somewhat common to impl traits for `&T` and `&mut T` so show these on the pages for `T` to ensure they're listed somewhere at least. Closes #20175
2015-04-07rustdoc: Render methods/impls for bare traitsAlex Crichton-0/+30
This renders a "Methods" and "Trait Implementations" section for each item implemented for a bare trait itself. Closes #19055