| 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.
|
|
|
|
Const-eval array lengths in rustdoc.
Fixes #46727
r? @eddyb
Big thanks to @eddyb for helping me figure this out.
|
|
Work towards thread safety in rustc
This PR is split out from https://github.com/rust-lang/rust/pull/45912. It contains changes which do not require the `sync` module.
|
|
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
|
|
Prevent rustc overwriting input files
If rustc is invoked on a file that would be overwritten by the
compilation, the compilation now fails, to avoid accidental loss. This
resolves #13019. Kudos to @estebank, whose patch I finished off.
|
|
Replace libtest/lib.rs:FnBox with std::boxed::FnBox.
Fixes https://github.com/rust-lang/rust/issues/41810.
|
|
|
|
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
|
|
|
|
Refactor argument-position impl Trait
Fixes https://github.com/rust-lang/rust/issues/46685, https://github.com/rust-lang/rust/issues/46470
r? @nikomatsakis
cc @chrisvittal
|
|
|
|
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.
|
|
nll part 5
Next round of changes from the nll-master branch.
Extensions:
- we now propagate ty-region-outlives constraints out of closures and into their creator when necessary
- we fix a few ICEs that can occur by doing liveness analysis (and the resulting normalization) during type-checking
- we handle the implicit region bound that assumes that each type `T` outlives the fn body
- we handle normalization of inputs/outputs in fn signatures
Not included in this PR (will come next):
- handling `impl Trait`
- tracking causal information
- extended errors
r? @arielb1
|
|
|
|
|
|
Improve search display on mobile
r? @QuietMisdreavus
|
|
Fix dynamic crates listing in doc sidebar
Fixes #46687.
r? @QuietMisdreavus
|
|
Fix ?Sized where bound not being displayed at the correct place
Fixes #46726.
r? @QuietMisdreavus
|
|
r=QuietMisdreavus
make doc search more relevant
Fixes #46595.
r? @QuietMisdreavus
If possible, I'd appreciate a strong check on this PR. :3
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
This is needed to allow the `ClosureRegionRequirements` to capture
types that include regions.
|
|
|
|
Fixes https://github.com/rust-lang/rust/issues/41810.
|
|
|
|
|
|
|
|
Record all imports (`use`, `extern crate`) in the crate metadata
This PR adds non-`pub` `use` and `extern crate` imports in the crate metadata since hygienic macros invoked in other crates may use them. We already include all other non-`pub` items in the crate metadata. This improves import suggestions in some cases.
Fixes #42337.
r? @nrc
|
|
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">
|