about summary refs log tree commit diff
path: root/src/test/rustdoc
AgeCommit message (Collapse)AuthorLines
2016-03-27Load struct-variant data correctly from metadatamitaa-0/+2
2016-03-27Linkify associated types and constantsmitaa-1/+4
2016-03-27Correct anchor for links to associated trait itemsmitaa-0/+39
2016-03-23Rollup merge of #32434 - mitaa:rdoc-no-inline, r=alexcrichtonEduard-Mihai Burtescu-0/+33
rustdoc: Consider `doc(no_inline)` in crate-local inlining Imports with `doc(no_inline)` will not be inlined, even when `doc(inline)` is present. fixes #32343 r? @alexcrichton
2016-03-22Consider `doc(no_inline)` in crate-local inliningmitaa-0/+33
2016-03-22Omit `pub` for inlined variant-struct fieldsmitaa-0/+21
2016-03-12Auto merge of #32142 - mitaa:rdoc-maybe-inline-local, r=alexcrichtonbors-4/+56
rustdoc: improve crate-local inlining fixes #28537 r? @alexcrichton
2016-03-11Adjust rustdoc test for new restrictionAaron Turon-3/+3
2016-03-10Remove `feature(globs)` since they are stablemitaa-4/+0
2016-03-10Consider `doc(hidden)` for crate-local inliningmitaa-0/+27
2016-03-09Check for `doc(inline)` instead of `.*(inline)`mitaa-0/+29
2016-03-06Auto merge of #32055 - mitaa:rdoc-strip-priv-imports, r=alexcrichtonbors-1/+21
fixes #27104 r? @alexcrichton
2016-03-06Split out rustdoc pass to strip private importsmitaa-1/+21
2016-03-03Ignore a rustdoc test that does not work on betaBrian Anderson-0/+1
2016-02-27Clearly separate code blocks from other blocksmitaa-0/+70
For summary descriptions we need the first paragraph (adjacent lines until a blank line) - but the rendered markdown of a code block did not leave a blank line in the html and was thus included in the summary line.
2016-02-26Auto merge of #31903 - mitaa:rdoc-ghostly-impls, r=alexcrichtonbors-0/+18
fixes #29584 r? @alexcrichton
2016-02-26Don't inline impls from `doc(hidden)` modulesmitaa-0/+18
2016-02-26Auto merge of #31749 - nikomatsakis:compiletest-subdir, r=alexcrichtonbors-0/+0
You can now group tests into directories like `run-pass/borrowck` or `compile-fail/borrowck`. By default, all `.rs` files within any directory are considered tests: to ignore some directory, create a placeholder file called `compiletest-ignore-dir` (I had to do this for several existing directories). r? @alexcrichton cc @brson
2016-02-25Rollup merge of #31837 - mitaa:rdoc-inherent-assoc, r=alexcrichtonManish Goregaokar-0/+23
This effectively only records associated items from either inherent impls or trait definitions in the search-index. fixes #31808 r? @alexcrichton
2016-02-24Add compiletest-ignore-dir to existing subdirectories.Niko Matsakis-0/+0
2016-02-24Fix source-links for files with absolute-pathsmitaa-0/+17
`clean_srcpath` tries to make the source-path relative to `src_root`, but this didn't work since `src_root` itself wasn't absolute.
2016-02-23Don't show associated consts from trait implsmitaa-0/+23
2016-02-14Auto merge of #31614 - mitaa:rdoc_locitem_extmac, r=alexcrichtonbors-0/+21
fixes #26606 r? @alexcrichton
2016-02-13Auto merge of #31602 - mitaa:rdoc_doc_shorter, r=alexcrichtonbors-0/+16
fixes #25787 fixes #30366 r? @alexcrichton
2016-02-12Omit src-links for items from extern macrosmitaa-0/+21
If the span of a local item points into an external macro its source-file will be bogus.
2016-02-12Shorten docstrings after Markdown renderingmitaa-0/+16
2016-02-12Fix associated item identifiersmitaa-5/+5
Search results use the mapping found in `ItemType::to_static_str` for the identifier, which could not be found on the page in the case of associated items.
2016-01-28rustdoc: Add test for tuple renderingOliver Middleton-0/+18
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