| Age | Commit message (Collapse) | Author | Lines |
|
rustdoc: add option to abort the process on markdown differences
In the efforts of keeping the std docs free of markdown warnings, this PR adds a stopgap measure to make sure the CI fails if it detects a markdown difference. It does this by adding a new unstable flag to rustdoc, `--deny-render-differences`, which bootstrap then passes to rustdoc when documenting std and friends.
The implementation is... probably not the cleanest option. It currently adds an extra branch after it prints the markdown warnings, which just prints a final line and calls `::std::process::abort(1)`. I did it like this because if it just panics regularly, it looks like an ICE, an even though `html::render::run` returns a Result, that Result is also just `expect`ed immediately, generating the same problem. This way bypasses the panic handler at the top of the thread and looks like a proper failure. Since i don't have a real error Handler there, this is the best i can do without pulling in a real error system for rustdoc.
This PR is blocked on https://github.com/rust-lang/rust/pull/46853, which will fix the rendering differences that were present on master when i started this branch.
|
|
The modules may be private or may even be enums so it would generate dead links.
|
|
|
|
Rollup of 14 pull requests
- Successful merges: #46636, #46780, #46784, #46809, #46814, #46820, #46839, #46847, #46858, #46878, #46884, #46890, #46898, #46918
- Failed merges:
|
|
Generics refactoring (groundwork for const generics)
These changes were suggested by @eddyb.
After this change, the `Generics` contain one `Vec` of an enum for the generic parameters, rather than two separate `Vec`s for lifetime and type parameters. Type params and const params will need to be in a shared `Vec` to preserve their ordering, and moving lifetimes into the same `Vec` should simplify the code that processes `Generics`.
|
|
Escape more items in the sidebar when needed
Fixes #46724.
r? @QuietMisdreavus
|
|
The Generics now contain one Vec of an enum for the generic parameters,
rather than two separate Vec's for lifetime and type parameters.
Additionally, places that previously used Vec<LifetimeDef> now use
Vec<GenericParam> instead.
|
|
Fix sidebar on ios
r? @QuietMisdreavus
|
|
|
|
Add an option to allow rustdoc to list modules by appearance
The `--sort-modules-by-appearance` option will list modules in the
order that they appear in the source, rather than sorting them
alphabetically (as is the default). This resolves #8552.
|
|
|
|
Improve search display on mobile
r? @QuietMisdreavus
|
|
Fix dynamic crates listing in doc sidebar
Fixes #46687.
r? @QuietMisdreavus
|
|
|
|
|
|
The `--sort-modules-by-appearance` option will list modules in the
order that they appear in the source, rather than sorting them
alphabetically (as is the default). This resolves #8552.
|
|
|
|
|
|
|
|
r=QuietMisdreavus
Fix type filter in rustdoc js
Fixes #46612.
r? @QuietMisdreavus
|
|
Fix mobile doc style and improve search bar
Fixes #46593.
r? @QuietMisdreavus
|
|
|
|
|
|
Add docs for never primitive
cc @nikomatsakis, @QuietMisdreavus
|
|
Replace option_try macros and match with ? operator
None
|
|
|
|
r=QuietMisdreavus
Fixes doc important trait display on mobile
Fixes #46527.
r? @QuietMisdreavus
|
|
|
|
Md warnings
Fixes #45365.
r? @QuietMisdreavus
|
|
Greatly improve sidebar when width < 700px
Fixes #36531.
r? @QuietMisdreavus
A few screenshots:
<img width="1440" alt="screen shot 2017-12-06 at 00 41 36" src="https://user-images.githubusercontent.com/3050060/33636875-6ad8b1a6-da1e-11e7-8d5b-d6d530ea5258.png">
<img width="1440" alt="screen shot 2017-12-06 at 00 41 40" src="https://user-images.githubusercontent.com/3050060/33636876-6af58196-da1e-11e7-82ab-b82768958037.png">
|
|
Move colors to main.css
r? @QuietMisdreavus
|
|
|
|
|
|
|
|
|
|
Speedup search loading when search url is received
Fixes #45971.
r? @nrc
cc @rust-lang/docs
|
|
Improve search style
Fixes #46494.
r? @QuietMisdreavus
|
|
Change "Types/modules" title of search tab to be more accurate
From issue #45787. Used "In name" as per suggestion from @Seeker14491.
|
|
Tabs are "In Names", "In Parameters", and "In Return Types".
|
|
|
|
Fix search results overlap
Fixes #46434.
r? @QuietMisdreavus
|
|
Fix deduplication of items
Fixes #45968.
r? @QuietMisdreavus
|
|
rustdoc: Fix issues with cross-crate inlined associated items
* Visibility was missing from impl items.
* Attributes and docs were missing from consts and types in impls.
* Const default values were missing from traits.
This unifies the code that handles associated items from impls and traits.
|
|
|
|
|
|
Fix invalid HTML escape
Fixes #46289.
r? @QuietMisdreavus
|
|
Bump to 1.24.0
* Update the in-tree version number
* Update the bootstrap compiler
* Remove `cfg(stage0)` annotations
* Update crate dependencies
* Update Cargo itself
|
|
|
|
Invert colors in important traits tooltip
Part of #46352.
r? @QuietMisdreavus
|
|
Also remove a number of `stage0` annotations and such
|