about summary refs log tree commit diff
path: root/src/librustdoc/html
AgeCommit message (Collapse)AuthorLines
2020-01-15formattingGuillaume Gomez-28/+23
2020-01-15Fix deref impl on type aliasGuillaume Gomez-24/+43
2020-01-14Prevent urls in headingsGuillaume Gomez-2/+6
2020-01-14Rollup merge of #68166 - ollie27:rustdoc_help_escape, r=GuillaumeGomezYuki Okushi-2/+2
rustdoc: HTML escape arrows on help popup r? @GuillaumeGomez
2020-01-13Rollup merge of #67959 - liigo:patch-13, r=GuillaumeGomezYuki Okushi-4/+8
rustdoc: improve stability mark arrows ### current ![old-stability-arrow](https://user-images.githubusercontent.com/346530/71863520-134d8b00-3138-11ea-86f9-a98068b3cff9.png) ### new ![new-stability-arrow](https://user-images.githubusercontent.com/346530/71863539-1b0d2f80-3138-11ea-843e-d79b9e5d9eec.png) ### new dark ![dark-stability-arrow](https://user-images.githubusercontent.com/346530/71863563-26f8f180-3138-11ea-9514-050e2c779f90.png)
2020-01-12rustdoc: HTML escape arrows on help popupOliver Middleton-2/+2
2020-01-10nix syntax::errors & prefer rustc_errors over errorsMazdak Farrokhzad-3/+2
2020-01-09rustdoc: use another stability mark arrow, no rotate.Liigo Zhuang-3/+2
2020-01-09rustdoc: improve stability mark arrowsLiigo Zhuang-4/+9
2020-01-07Rollup merge of #67908 - ollie27:rustdoc_const_html_escape, r=GuillaumeGomezYuki Okushi-5/+16
rustdoc: HTML escape const values r? @GuillaumeGomez
2020-01-06Auto merge of #67886 - Centril:rustc_hir_canon_imports, r=nagisabors-5/+6
Nix `rustc_hir` reexports in rustc::hir r? @Zoxc cc @Mark-Simulacrum
2020-01-05rustdoc: HTML escape const valuesOliver Middleton-5/+16
2020-01-05Use `as_deref()` to replace `as_ref().map(...)`Ivan Tham-3/+3
Suggested by @lzutao
2020-01-05Remove rustc_hir reexports in rustc::hir.Mazdak Farrokhzad-5/+6
2020-01-04canonicalize FxHash{Map,Set} importsMazdak Farrokhzad-2/+2
2020-01-02Normalize `syntax::edition` imports.Mazdak Farrokhzad-5/+5
2020-01-02Normalize `syntax::symbol` imports.Mazdak Farrokhzad-3/+3
2020-01-02Normalize `syntax::source_map` imports.Mazdak Farrokhzad-4/+4
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-3/+3
2019-12-24Deprecate Error::description for realDavid Tolnay-5/+1
`description` has been documented as soft-deprecated since 1.27.0 (17 months ago). There is no longer any reason to call it or implement it. This commit: - adds #[rustc_deprecated(since = "1.41.0")] to Error::description; - moves description (and cause, which is also deprecated) below the source and backtrace methods in the Error trait; - reduces documentation of description and cause to take up much less vertical real estate in rustdocs, while preserving the example that shows how to render errors without needing to call description; - removes the description function of all *currently unstable* Error impls in the standard library; - marks #[allow(deprecated)] the description function of all *stable* Error impls in the standard library; - replaces miscellaneous uses of description in example code and the compiler.
2019-12-24x.py fmt after previous deignoreMark Rousskov-71/+162
2019-12-24Show value for consts in the documentationOhad Ravid-2/+24
2019-12-23Rollup merge of #67527 - GuillaumeGomez:results-show-too-much, r=kinnisonMazdak Farrokhzad-46/+45
Results show too much Fixes #67461. To reproduce the current issue: search anything, then once the results appears, press escape. They should disappear then re-appear right away. This is because blurring an element triggers the "change" event. r? @kinnison
2019-12-22Format the worldMark Rousskov-2018/+2425
2019-12-22Fix invalid results showing backGuillaume Gomez-0/+4
2019-12-22Improve code readabilityGuillaume Gomez-43/+37
2019-12-22Improve JS code a bit by avoid erasing all event handlersGuillaume Gomez-4/+5
2019-12-22Implement PrintWithSpace trait on hir::MutabilityGuillaume Gomez-12/+12
2019-12-21Remove clean::Mutability enumGuillaume Gomez-2/+2
2019-12-16Rollup merge of #67336 - GuillaumeGomez:fix-js-error, r=Dylan-DPCMazdak Farrokhzad-1/+1
Fix JS error when loading page with search For example when you load this page: https://doc.rust-lang.org/nightly/std/num/struct.NonZeroI8.html?search=foo, you get a nice JS error: ``` TypeError: ev is undefined ``` r? @kinnison
2019-12-15Fix JS error when loading page with searchGuillaume Gomez-1/+1
2019-12-12replace serialize with serde in rustdocAndy Russell-68/+121
2019-12-08Sort auto trait and blanket implementations displayGuillaume Gomez-6/+28
2019-12-05Auto merge of #66828 - GuillaumeGomez:less-minification, r=kinnisonbors-91/+14
Less minification The goal of this PR is to remove the minification process on the `search-index.js` file. It provides great result in term of space reduction but the computation time is far too long. I'll work on this issue and will put it back once it's fast enough. cc @nox @lqd r? @kinnison
2019-12-02Add missing backlineGuillaume Gomez-1/+1
2019-12-02minify theme.js as wellGuillaume Gomez-4/+3
2019-12-02Remove minification on search-index.js fileGuillaume Gomez-85/+9
2019-12-02Add missing checkGuillaume Gomez-1/+1
2019-11-30move UnstableFeatures -> rustc_featureMazdak Farrokhzad-1/+1
2019-11-25Rollup merge of #65613 - Mark-Simulacrum:rustdoc-preserve-ws, r=GuillaumeGomezPietro Albini-1/+1
Preserve whitespace inside one-backtick codeblocks Previously this was only done inside short docblocks (e.g., summary lines), but we should also do so in general. Fixes #65555
2019-11-23Rollup merge of #66657 - ollie27:rustdoc_flock_panic, r=GuillaumeGomezMazdak Farrokhzad-1/+2
rustdoc: Don't panic when failing to write .lock file It can be treated like any other unexpected IO error. I couldn't think of a good way to add a test for this unfortunately. r? @GuillaumeGomez
2019-11-23rustdoc: Don't panic when failing to write .lock fileOliver Middleton-1/+2
It can be treated like any other unexpected IO error.
2019-11-22Auto merge of #66565 - Mark-Simulacrum:syntax-cfg-mod, r=petrochenkovbors-2/+1
Move process_configure_mod to rustc_parse This removes the hack in favor of perhaps a less principled, but less painful, approach. This also supports my work to decouple `Session` from librustc, as `ParseSess` currently has `Attribute` as "part" of it but after this PR will no longer do so.
2019-11-21Revert "Update Source Code Pro and include italics"Guillaume Gomez-22/+9
This reverts commit ea9519bf16f0be137a814a49c9fbaf232ba49a43.
2019-11-20Delete ProcessCfgModMark Rousskov-2/+1
The previous commit removes the use of this, and now we cleanup.
2019-11-20Rollup merge of #66514 - GuillaumeGomez:fix-search-filter-save, r=kinnisonMazdak Farrokhzad-16/+13
Fix selected crate search filter Fixes #62929. r? @kinnison
2019-11-20Rollup merge of #66298 - Ppjet6:disable-search-field, r=GuillaumeGomezMazdak Farrokhzad-6/+15
rustdoc: fixes #64305: disable search field instead of hidding it The result seems to be ok but I wasn't entirely sure how to get there. I tried to stay generic a bit but maybe it's not required at all. @GuillaumeGomez Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-20Rollup merge of #65665 - tspiteri:italic-and-update-SourceCodePro, ↵Mazdak Farrokhzad-9/+22
r=GuillaumeGomez Update Source Code Pro and include italics Fixes #65502. A few notes: * As stated in #65502, this does increase the download size. * Since this PR changes the font set, I think docs.rs would have to be updated if this PR is merged. * The fonts have a double extension (.ttf.woff); this is to keep the names consistent with the upstream font release which does that to distinguish these from the .otf.woff files ([Source Code Pro otf renders poorly on older Windows system apps](https://github.com/adobe-fonts/source-code-pro/issues/25#issuecomment-9019600)).
2019-11-20Change background-color of search input if disabledGuillaume Gomez-0/+8
2019-11-20rustdoc: fixes #64305: disable search field instead of hidding itMaxime “pep” Buquet-6/+7
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>