about summary refs log tree commit diff
path: root/src/librustdoc/html/render
AgeCommit message (Collapse)AuthorLines
2020-07-29Pass by valueJoseph Ryan-1/+1
2020-07-29Refactor DocFS to fix error handling bugsJoseph Ryan-7/+10
2020-07-27More requested changesJoseph Ryan-3/+3
2020-07-27Make requested changesJoseph Ryan-4/+2
2020-07-27Pull out more types from htmlJoseph Ryan-13/+2
2020-07-27Extract `Cache` and other types from `html` moduleJoseph Ryan-489/+4611
2020-07-27Move `Error` and `RenderInfo` out of `html` moduleJoseph Ryan-1/+2
2020-06-26Generate docs for links to private items when passed --document-privateJoshua Nelson-0/+6
- Pass around document_private a lot more - Add tests + Add tests for intra-doc links to private items + Add ignored tests for warnings in reference links
2020-05-29Split payload of FileName::Real to track both real and virutalized paths.Felix S. Klock II-1/+1
Such splits arise from metadata refs into libstd. This way, we can (in a follow on commit) continue to emit the virtual name into things like the like the StableSourceFileId that ends up in incremetnal build artifacts, while still using the devirtualized file path when we want to access the file. Note that this commit is intended to be a refactoring; the actual fix to the bug in question is in a follow-on commit.
2020-05-14* Update aliases data struct from HashMap to BTreeMap to have more ↵Guillaume Gomez-9/+7
deterministic results * Update Javascript to take this change into account * Update CrateData::aliases field to take a reference instead (it allowed to remove a conversion loop)
2020-05-14Move doc alias discovery into the Attributes struct and some code improvementsGuillaume Gomez-37/+4
2020-05-07Merge aliases and search-indexGuillaume Gomez-21/+23
2020-05-07Improve doc alias discoveryGuillaume Gomez-36/+53
2020-04-20Rollup merge of #71250 - GuillaumeGomez:use-json-instead-of-js, r=kinnisonDylan DPC-1/+6
Replace big JS dict with JSON parsing Part of #56545. @ollie27 suggested that using JSON instead of a JS dict might be faster, so I decided to test it. And the results far exceeded whatever expectations I had... I used https://github.com/adamgreig/stm32ral for my tests. If you want to build it locally: ```bash $ cargo doc --features doc --open ``` But I strongly recommend to do it with this PR. Some numbers: * Loading a page with the JSON search-index: less than 1 second * Loading a page with the JS search-index: crashed after 30 seconds I think the results are clear enough... r? @ollie27 cc @rust-lang/rustdoc
2020-04-17Replace big JS dict with JSON parsingGuillaume Gomez-1/+6
2020-04-16Dogfood or_patterns in rustdocJosh Stone-4/+7
2020-04-10Improve rustdoc source code a bitGuillaume Gomez-5/+5
2020-03-31more clippy fixesMatthias Krüger-1/+1
use is_empty() instead of len comparison (clippy::len_zero) use if let instead of while let loop that never loops (clippy::never_loop) remove redundant returns (clippy::needless_return) remove redundant closures (clippy::redundant_closure) use if let instead of match and wildcard pattern (clippy::single_match) don't repeat field names redundantly (clippy::redundant_field_names)
2020-03-30rustc -> rustc_middle part 3 (rustfmt)Mazdak Farrokhzad-1/+1
2020-03-30rustc -> rustc_middle part 2Mazdak Farrokhzad-1/+1
2020-03-22don't create variable bindings just to return the bound value immediately ↵Matthias Krüger-3/+2
(clippy::let_and_return)
2020-03-16Rename render::Type to improve namingGuillaume Gomez-3/+3
2020-03-16formattingGuillaume Gomez-17/+19
2020-03-16Support type search for arguments and returned typesGuillaume Gomez-18/+29
2020-03-02Put back output-format option for show-coverageGuillaume Gomez-0/+1
2020-02-29use .iter() instead of .into_iter() on references.Matthias Krüger-1/+1
2020-02-27use char instead of &str for single char patternsMatthias Krüger-2/+2
2020-01-30rustdoc: NodeId is now DefIdTom Jakubowski-16/+11
2020-01-15remove unneeded code from cache.rsGuillaume Gomez-14/+6
2020-01-15formattingGuillaume Gomez-16/+15
2020-01-15Fix deref impl on type aliasGuillaume Gomez-17/+26
2020-01-05Remove rustc_hir reexports in rustc::hir.Mazdak Farrokhzad-1/+1
2020-01-02Normalize `syntax::symbol` imports.Mazdak Farrokhzad-1/+1
2020-01-02Normalize `syntax::source_map` imports.Mazdak Farrokhzad-1/+1
2019-12-22Format the worldMark Rousskov-139/+148
2019-12-12replace serialize with serde in rustdocAndy Russell-11/+23
2019-09-23Remove needless `mut` in pathsMark Rousskov-1/+1
2019-09-13Move `Cache` generation to separate moduleMark Rousskov-0/+675
2019-08-02librustdoc: Unconfigure tests during normal buildVadim Petrochenkov-0/+29