summary refs log tree commit diff
path: root/src/librustdoc/html/render.rs
AgeCommit message (Collapse)AuthorLines
2018-09-16Rollup merge of #53941 - kzys:sort-impls, r=GuillaumeGomezGuillaume Gomez-4/+20
rustdoc: Sort implementors Fixes #53812
2018-09-14Auto merge of #52962 - GuillaumeGomez:few-things, r=QuietMisdreavusbors-1/+2
Fix trait item doc setting, add new setting, start hiding elements by default and then showing them up r? @QuietMisdreavus
2018-09-12rustdoc: Sort implementorsKazuyoshi Kato-4/+20
Fixes #53812
2018-09-12Auto merge of #53409 - GuillaumeGomez:associated-const-value, r=QuietMisdreavusbors-40/+16
Don't show associated const value anymore Part of #44348. Before: <img width="1440" alt="screen shot 2018-08-16 at 00 48 30" src="https://user-images.githubusercontent.com/3050060/44177414-20ef1480-a0ee-11e8-80d4-7caf082cf0de.png"> After: <img width="1440" alt="screen shot 2018-08-16 at 00 48 23" src="https://user-images.githubusercontent.com/3050060/44177417-251b3200-a0ee-11e8-956a-4229275e3342.png"> cc @nox r? @QuietMisdreavus
2018-09-09rustdoc: Remove generated blanket impls from trait pagesOliver Middleton-14/+12
2018-09-06Don't show default docsGuillaume Gomez-16/+11
2018-09-06Fix hover on implsGuillaume Gomez-28/+28
2018-09-01Rollup merge of #53801 - GuillaumeGomez:duplicated-foreign-type-impls, ↵kennytm-5/+9
r=QuietMisdreavus Prevent duplicated impl on foreign types Fixes #53689. r? @QuietMisdreavus
2018-08-31Auto merge of #51384 - QuietMisdreavus:extern-version, r=GuillaumeGomezbors-2/+14
rustdoc: add flag to control the html_root_url of dependencies The `--extern-html-root-url` flag in this PR allows one to override links to crates whose docs are not already available locally in the doc bundle. Docs.rs currently uses a version of this to make sure links to other crates go into that crate's docs.rs page. See the included test for intended use, but the idea is as follows: Calling rustdoc with `--extern-html-root-url crate=https://some-url.com` will cause rustdoc to override links that point to that crate to instead be replaced with a link rooted at `https://some-url.com/`. (e.g. for docs.rs this would be `https://docs.rs/crate/0.1.0` or the like.) Cheekily, rustup could use these options to redirect links to std/core/etc to instead point to locally-downloaded docs, if it so desired. Fixes https://github.com/rust-lang/rust/issues/19603
2018-08-29Prevent duplicated impl on foreign typesGuillaume Gomez-5/+9
2018-08-28Use FxHash{Map,Set} instead of the default Hash{Map,Set} everywhere in rustc.Eduard-Mihai Burtescu-28/+29
2018-08-26Remove static and const initialization from documentationGuillaume Gomez-17/+4
2018-08-25Don't show associated const value anymoreGuillaume Gomez-23/+12
2018-08-23use String::new() instead of String::from(""), "".to_string(), "".to_owned() ↵Matthias Krüger-4/+4
or "".into()
2018-08-21Rollup merge of #53496 - matthiaskrgr:codespell_08_2018, r=varkorkennytm-1/+1
Fix typos found by codespell.
2018-08-19mv (mod) codemap source_mapDonato Sciarra-1/+1
2018-08-19Fix typos found by codespell.Matthias Krüger-1/+1
2018-08-18Use the new Entry::or_default method where possible.Eduard-Mihai Burtescu-4/+4
2018-08-05Change rustdoc style so fully qualified names do not overlap src linksMike Boutin-30/+30
A type's fully qualified name will now wrap once it gets to the `[-][src]` link aligned against the right edge of the content area. Previously the two would overlap and the name would only wrap when hitting the edge of the content area. The `[-][src]` link will main at the top of the header.
2018-08-02Fix trait item doc setting, add new setting, start hiding elements by ↵Guillaume Gomez-1/+2
default and then showing them up
2018-07-31Cleanup highlighting codeMark Rousskov-3/+1
Removes some unused code and de-publicizes structs
2018-07-31Remove global derive_id and reset_ids functionsMark Rousskov-88/+59
Previously these functions relied on TLS but we can instead thread the relevant state through explicitly.
2018-07-31Further extract error code switchMark Rousskov-18/+22
Removes dependency on UnstableFeatures from markdown rendering
2018-07-30Auto merge of #52805 - ljedrz:format_str_literal, r=petrochenkovbors-1/+1
Don't format!() string literals Prefer `to_string()` to `format!()` take 2, this time targetting string literals. In some cases (`&format!("...")` -> `"..."`) also removes allocations. Occurences of `format!("")` are changed to `String::new()`.
2018-07-29Auto merge of #52767 - ljedrz:avoid_format, r=petrochenkovbors-6/+6
Prefer to_string() to format!() Simple benchmarks suggest in some cases it can be faster by even 37%: ``` test converting_f64_long ... bench: 339 ns/iter (+/- 199) test converting_f64_short ... bench: 136 ns/iter (+/- 34) test converting_i32_long ... bench: 87 ns/iter (+/- 16) test converting_i32_short ... bench: 87 ns/iter (+/- 49) test converting_str ... bench: 54 ns/iter (+/- 15) test formatting_f64_long ... bench: 349 ns/iter (+/- 176) test formatting_f64_short ... bench: 145 ns/iter (+/- 14) test formatting_i32_long ... bench: 98 ns/iter (+/- 14) test formatting_i32_short ... bench: 93 ns/iter (+/- 15) test formatting_str ... bench: 86 ns/iter (+/- 23) ```
2018-07-29Auto merge of #52764 - sinkuu:cleanup, r=nikomatsakisbors-4/+2
Misc cleanups
2018-07-28Auto merge of #52585 - GuillaumeGomez:generic-impls, r=QuietMisdreavusbors-34/+61
[rustdoc] Generic impls Fixes #33772. r? @QuietMisdreavus
2018-07-28Don't format!() string literalsljedrz-1/+1
2018-07-28Don't display full blanket implementation and put it into its own sectionGuillaume Gomez-17/+42
2018-07-28Rollup merge of #52781 - ljedrz:avoid_vec_arguments, r=nikomatsakiskennytm-3/+3
Use a slice where a vector is not necessary
2018-07-27Use slices where a vector is not necessaryljedrz-3/+3
2018-07-27Use str::repeatShotaro Yamada-4/+2
2018-07-27Prefer to_string() to format!()ljedrz-6/+6
2018-07-25Add missing dynTatsuyuki Ishi-1/+1
2018-07-22Improve codeGuillaume Gomez-10/+1
2018-07-22CleanupGuillaume Gomez-6/+0
2018-07-22Add filter over non generic implsGuillaume Gomez-1/+0
2018-07-22Working generic implGuillaume Gomez-21/+25
2018-07-22some improvementsGuillaume Gomez-3/+12
2018-07-22part 2Guillaume Gomez-1/+5
2018-07-22First step to generic trait implsGuillaume Gomez-0/+1
2018-07-19Auto merge of #52024 - oli-obk:existential_parse, r=nikomatsakisbors-4/+42
Implement existential types (not for associated types yet) r? @nikomatsakis cc @Centril @varkor @alexreg
2018-07-19Auto merge of #51854 - davidtwco:rfc-2008-rustdoc, r=QuietMisdreavusbors-3/+39
RFC 2008 non-exhaustive enums/structs: Rustdoc Part of #44109. Not sure how those who maintain rustdoc primarily would prefer this addition look or where it should be placed, happy to make any changes required. r? @QuietMisdreavus (not sure if this is the right person, just guessing)
2018-07-19Generate a page for existential typesOliver Schneider-4/+37
2018-07-19Updated FRU terminology.David Wood-1/+1
2018-07-18remove FIXME about macro redirectsQuietMisdreavus-1/+0
Based on the discussion in #35705, the rustdoc team has determined that macro redirects are here to stay. Closes #35705
2018-07-18Updated wording and placement of non-exhaustive notice so it is collapsed by ↵David Wood-10/+12
default and easier to understand.
2018-07-18Implement existential typesOliver Schneider-0/+5
2018-07-12Moved non_exhaustive message to fields/variants section and onto type.David Wood-17/+14
2018-07-08Add setting to prevent doc auto-hide of trait implementationsGuillaume Gomez-0/+2