about summary refs log tree commit diff
path: root/src/librustdoc/passes
AgeCommit message (Collapse)AuthorLines
2019-02-28track items per-file instead of per-typeQuietMisdreavus-117/+33
2019-02-28tweak wording of extern typesQuietMisdreavus-1/+1
2019-02-28add a coverage mode for private itemsQuietMisdreavus-0/+9
2019-02-28print doc coverage as a table of individual item typesQuietMisdreavus-41/+165
2019-02-28refactor: combine item count numbers into a new structQuietMisdreavus-29/+57
2019-02-28count fewer items in calculate-doc-coverageQuietMisdreavus-1/+5
2019-02-28add option to calculate documentation coverageQuietMisdreavus-0/+115
2019-02-27Rollup merge of #58627 - euclio:rustdoc-pass-order, r=QuietMisdreavusMazdak Farrokhzad-124/+76
rustdoc: move collapse and unindent docs passes earlier Moves these passes as early as possible so later passes will see the same markdown that is passed to the test collector. Fixes #58473, and a similar issue with the private-doc-tests lint. r? @QuietMisdreavus
2019-02-23merge early and late passes into single structAndy Russell-112/+62
2019-02-23move collapse and unindent docs passes earlierAndy Russell-14/+16
2019-02-23fix build for Rust 2018 now that #58100 has been mergedTrevor Spiteri-1/+1
2019-02-23rustdoc: support methods on primitives in intra-doc linksTrevor Spiteri-0/+35
2019-02-23Transition librustdoc to 2018 editionHirokazu Hata-73/+68
2019-02-20Dedup a rustdoc diagnostic constructionDale Wijnand-22/+8
2019-02-12Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnikbors-3/+3
Cosmetic improvements to doc comments This has been factored out from https://github.com/rust-lang/rust/pull/58036 to only include changes to documentation comments (throughout the rustc codebase). r? @steveklabnik Once you're happy with this, maybe we could get it through with r=1, so it doesn't constantly get invalidated? (I'm not sure this will be an issue, but just in case...) Anyway, thanks for your advice so far!
2019-02-10rustc: doc commentsAlexander Regueiro-3/+3
2019-02-10Add trait alias support in rustdocGuillaume Gomez-0/+1
2019-01-26remove `_with_applicability` from suggestion fnsAndy Russell-1/+1
2019-01-22don't call get_macro on proc-macro stubsQuietMisdreavus-2/+6
2019-01-14rustdoc: check code block syntax in early passAndy Russell-13/+128
2019-01-14generalize markdown to source span calculationAndy Russell-59/+87
2018-12-26Store `Ident` rather than just `Name` in HIR types `Item` and `ForeignItem`.Alexander Regueiro-1/+1
2018-12-25Remove licensesMark Rousskov-100/+0
2018-12-19Rollup merge of #56663 - Zoxc:resolver-lifetime, r=pnkfelixPietro Albini-17/+17
Remove lifetime from Resolver
2018-12-12Bump to 1.33.0Alex Crichton-6/+6
* Update bootstrap compiler * Update version to 1.33.0 * Remove some `#[cfg(stage0)]` annotations Actually updating the version number is blocked on updating Cargo
2018-12-10fix intra-link resolution spans in block commentsAndy Russell-34/+75
This commit improves the calculation of code spans for intra-doc resolution failures. All sugared doc comments should now have the correct spans, including those where the comment is longer than the docs. It also fixes an issue where the spans were calculated incorrectly for certain unsugared doc comments. The diagnostic will now always use the span of the attributes, as originally intended. Fixes #55964.
2018-12-10Remove lifetime from ResolverJohn Kåre Alsaker-17/+17
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-38/+37
2018-12-06Use a function to access the Hir map to be able to turn it into a query laterJohn Kåre Alsaker-6/+6
2018-11-22Rollup merge of #55367 - GuillaumeGomez:private-item-doc-test-lint, ↵Guillaume Gomez-42/+112
r=QuietMisdreavus lint if a private item has doctests Fixes #55333. r? @QuietMisdreavus
2018-11-21rustc: remove {FxHash,Node,DefId,HirId,ItemLocal}{Map,Set} "constructor" fns.Eduard-Mihai Burtescu-2/+2
2018-11-19Auto merge of #56051 - pietroalbini:rollup, r=pietroalbinibors-1/+1
Rollup of 25 pull requests Successful merges: - #55562 (Add powerpc- and powerpc64-unknown-linux-musl targets) - #55564 (test/linkage-visibility: Ignore on musl targets) - #55827 (A few tweaks to iterations/collecting) - #55834 (Forward the ABI of the non-zero sized fields of an union if they have the same ABI) - #55857 (remove unused dependency) - #55862 (in which the E0618 "expected function" diagnostic gets a makeover) - #55867 (do not panic just because cargo failed) - #55894 (miri enum discriminant handling: Fix treatment of pointers, better error when it is undef) - #55916 (Make miri value visitor useful for mutation) - #55919 (core/tests/num: Simplify `test_int_from_str_overflow()` test code) - #55923 (reword #[test] attribute error on fn items) - #55949 (ty: return impl Iterator from Predicate::walk_tys) - #55952 (Update to Clang 7 on CI.) - #55953 (#53488 Refactoring UpvarId) - #55962 (rustdoc: properly calculate spans for intra-doc link resolution errors) - #55963 (Stress test for MPSC) - #55968 (Clean up some non-mod-rs stuff.) - #55970 (Miri backtrace improvements) - #56007 (CTFE: dynamically make sure we do not call non-const-fn) - #56011 (Replace data.clone() by Arc::clone(&data) in mutex doc.) - #56012 (avoid shared ref in UnsafeCell::get) - #56016 (Add VecDeque::resize_with) - #56027 (docs: Add missing backtick in object_safety.rs docs) - #56043 (remove "approx env bounds" if we already know from trait) - #56059 (Increase `Duration` approximate equal threshold to 1us)
2018-11-19Rollup merge of #55962 - QuietMisdreavus:tricky-spans, r=GuillaumeGomezPietro Albini-1/+1
rustdoc: properly calculate spans for intra-doc link resolution errors Fixes https://github.com/rust-lang/rust/issues/55723 When rustdoc is reporting a resolution error for intra-doc links, it needs to convert a span from one relative to the *markdown* (as the links are only found on the final markdown text) to one relative to the *source code* (as the error reporting is meant to show where the line is in the source, so the user can fix it). However, a calculation for how much "offset" to apply had a subtle error: it trimmed the whole line when attempting to account for leading indentation. This caused it to add in *trailing* whitespace into this calculation, which created an incorrect span. In a lot of situations, this isn't a problem - the span will be shifted in the code slightly, but the warning will still be displayed and mostly legible. However, there is one important situation where this can cause an ICE: multi-byte codepoints. If a shifted span now has a starting point in the middle of a multi-byte codepoint, libsyntax will panic when trying to track what source item it corresponds to. This flew under our radar because trailing whitespace and multi-byte codepoints are both situations that we don't run into in the compiler repo. (There is one more situation where this can error, that will be much harder to fix: block-style doc comments. Lines in a block-style doc comment have a zero-or-more (usually one) character offset per line, causing this calculation to be way off. I'm punting that to another issue, though...)
2018-11-18resolve: Support resolving macros without leaving tracesVadim Petrochenkov-1/+1
2018-11-16lint if a private item has doctestsGuillaume Gomez-42/+112
2018-11-14properly calculate spans for intra-doc link resolution errorsQuietMisdreavus-1/+1
2018-11-12Fix rustdocOliver Scherer-6/+6
2018-10-09Store nightly build instead of checking env var every timeGuillaume Gomez-2/+4
2018-10-09Add lint for doc without codeblocksGuillaume Gomez-1/+45
2018-09-25handle proc-macros as macros instead of functionsQuietMisdreavus-0/+3
2018-09-20fix intra-links for trait implsQuietMisdreavus-16/+44
2018-09-20filter collected trait impls against items in the crateQuietMisdreavus-60/+149
2018-09-20shuffle ownership of `external_traits`QuietMisdreavus-7/+2
constraints: - clean/inline.rs needs this map to fill in traits when inlining - fold.rs needs this map to allow passes to fold trait items - html/render.rs needs this map to seed the Cache.traits map of all known traits The first two are the real problem, since `DocFolder` only operates on `clean::Crate` but `clean/inline.rs` only sees the `DocContext`. The introduction of early passes means that these two now exist at the same time, so they need to share ownership of the map. Even better, the use of `Crate` in a rustc thread pool means that it needs to be Sync, so it can't use `Lrc<Lock>` to manually activate thread-safety. `parking_lot` is reused from elsewhere in the tree to allow use of its `ReentrantMutex`, as the relevant parts of rustdoc are still single-threaded and this allows for easier use in that context.
2018-09-20refactor: move `access_levels` into RenderInfoQuietMisdreavus-1/+1
2018-09-20collect auto-/blanket-impls during collect-trait-implsQuietMisdreavus-1/+39
2018-09-20add more tests for traits-in-non-module-scopeQuietMisdreavus-1/+1
2018-09-20swap external_traits into the crate before running strip_hiddenQuietMisdreavus-3/+10
2018-09-20add a bunch of debug printsQuietMisdreavus-0/+7
2018-09-20only move access_levels/external_traits after early passesQuietMisdreavus-9/+2
2018-09-20rustdoc: collect trait impls as an early passQuietMisdreavus-0/+105