summary refs log tree commit diff
path: root/src/librustdoc
AgeCommit message (Collapse)AuthorLines
2017-12-29Auto merge of #46883 - QuietMisdreavus:faildown, r=GuillaumeGomezbors-2/+14
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.
2017-12-28rustdoc: Don't try to generate links for modules in import pathsOliver Middleton-24/+2
The modules may be private or may even be enums so it would generate dead links.
2017-12-27rustdoc: add option to abort process on markdown differencesQuietMisdreavus-2/+14
2017-12-24Auto merge of #46894 - detrumi:fix-const-eval-trait, r=eddybbors-2/+6
Const-eval array lengths in rustdoc. Fixes #46727 r? @eddyb Big thanks to @eddyb for helping me figure this out.
2017-12-22Auto merge of #46779 - Zoxc:par-merge-without-sync, r=arielb1bors-5/+2
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.
2017-12-21Auto merge of #46922 - kennytm:rollup, r=kennytmbors-5/+6
Rollup of 14 pull requests - Successful merges: #46636, #46780, #46784, #46809, #46814, #46820, #46839, #46847, #46858, #46878, #46884, #46890, #46898, #46918 - Failed merges:
2017-12-21Auto merge of #45930 - jplatte:generics_refactoring, r=eddybbors-83/+73
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`.
2017-12-22Rollup merge of #46847 - GuillaumeGomez:more-sidebar-escape, r=QuietMisdreavuskennytm-3/+4
Escape more items in the sidebar when needed Fixes #46724. r? @QuietMisdreavus
2017-12-22Rollup merge of #46814 - varkor:contrib-7, r=alexcrichtonkennytm-1/+1
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.
2017-12-22Rollup merge of #46636 - frewsxcv:frewsxcv-fn-box, r=estebankkennytm-1/+1
Replace libtest/lib.rs:FnBox with std::boxed::FnBox. Fixes https://github.com/rust-lang/rust/issues/41810.
2017-12-21Combine GlobalArenas and DroplessArena into AllArenasJohn Kåre Alsaker-5/+2
2017-12-21Add GenericParam, refactor Generics in ast, hir, rustdocJonas Platte-83/+73
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.
2017-12-21Rollup merge of #46861 - GuillaumeGomez:fix-ios-sidebar, r=QuietMisdreavusGuillaume Gomez-10/+50
Fix sidebar on ios r? @QuietMisdreavus
2017-12-21Escape more items in the sidebar when neededGuillaume Gomez-3/+4
2017-12-21Auto merge of #46754 - cramertj:refactor-arg-impl, r=nikomatsakisbors-1/+0
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
2017-12-20Const-eval TyArray trait implementorsWilco Kusee-2/+6
2017-12-20Rollup merge of #46787 - varkor:contrib-6, r=QuietMisdreavuskennytm-5/+20
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.
2017-12-20Auto merge of #46733 - nikomatsakis:nll-master-to-rust-master-5, r=arielb1bors-0/+1
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
2017-12-20Fix sidebar on iosGuillaume Gomez-10/+50
2017-12-19Move source-output conflict checking into `compile_input`varkor-1/+1
2017-12-18Rollup merge of #46825 - GuillaumeGomez:mobile-search, r=QuietMisdreavusGuillaume Gomez-0/+20
Improve search display on mobile r? @QuietMisdreavus
2017-12-18Rollup merge of #46824 - GuillaumeGomez:doc-sidebar, r=QuietMisdreavusGuillaume Gomez-1/+1
Fix dynamic crates listing in doc sidebar Fixes #46687. r? @QuietMisdreavus
2017-12-18Rollup merge of #46786 - GuillaumeGomez:fix-sized-rendering, r=QuietMisdreavusGuillaume Gomez-5/+25
Fix ?Sized where bound not being displayed at the correct place Fixes #46726. r? @QuietMisdreavus
2017-12-18Rollup merge of #46700 - GuillaumeGomez:more-relevant-doc-search, ↵Guillaume Gomez-12/+11
r=QuietMisdreavus make doc search more relevant Fixes #46595. r? @QuietMisdreavus If possible, I'd appreciate a strong check on this PR. :3
2017-12-18Improve search display on mobileGuillaume Gomez-0/+20
2017-12-18Fix dynamic crates listing in doc sidebarGuillaume Gomez-1/+1
2017-12-18Fix tidy issuevarkor-1/+2
2017-12-18Fix ?Sized where bound not being displayed at the correct placeGuillaume Gomez-5/+25
2017-12-17Add an option to allow rustdoc to list modules by appearancevarkor-5/+19
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.
2017-12-17syntax: Rename `P::unwrap` into `P::into_inner`Vadim Petrochenkov-2/+2
2017-12-15Refactor argument-position impl TraitTaylor Cramer-1/+0
2017-12-15add a new RegionKind variant: ReClosureBoundNiko Matsakis-0/+1
This is needed to allow the `ClosureRegionRequirements` to capture types that include regions.
2017-12-15Improve results a bitGuillaume Gomez-2/+6
2017-12-15Replace libtest/lib.rs:FnBox with std::boxed::FnBox.Corey Farwell-1/+1
Fixes https://github.com/rust-lang/rust/issues/41810.
2017-12-15make doc search more relevantGuillaume Gomez-12/+7
2017-12-14stub out trait aliases in librustdocAlex Burka-0/+3
2017-12-14Use PathBuf instead of String where applicableOliver Schneider-82/+86
2017-12-13Auto merge of #46419 - jseyfried:all_imports_in_metadata, r=nrcbors-2/+4
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
2017-12-13Rollup merge of #46672 - GuillaumeGomez:fix-type-filter-search, ↵kennytm-4/+4
r=QuietMisdreavus Fix type filter in rustdoc js Fixes #46612. r? @QuietMisdreavus
2017-12-13Rollup merge of #46668 - GuillaumeGomez:mobile-sidebar, r=QuietMisdreavuskennytm-4/+27
Fix mobile doc style and improve search bar Fixes #46593. r? @QuietMisdreavus
2017-12-12Fix type filter in rustdoc jsGuillaume Gomez-4/+4
2017-12-11Fix mobile doc style and improve search barGuillaume Gomez-4/+27
2017-12-10Auto merge of #46232 - canndrew:never-docs, r=QuietMisdreavusbors-1/+7
Add docs for never primitive cc @nikomatsakis, @QuietMisdreavus
2017-12-10Auto merge of #46602 - mbrubeck:try, r=kennytmbors-14/+9
Replace option_try macros and match with ? operator None
2017-12-09Use Try syntax for Option in place of macros or matchMatt Brubeck-14/+9
2017-12-09rustdoc: Include `impl [u8]` in the docsOliver Middleton-0/+1
2017-12-09Auto merge of #46586 - GuillaumeGomez:fix-mobile-important-display, ↵bors-1/+9
r=QuietMisdreavus Fixes doc important trait display on mobile Fixes #46527. r? @QuietMisdreavus
2017-12-08Fixes doc important trait display on mobileGuillaume Gomez-1/+9
2017-12-08Auto merge of #46247 - GuillaumeGomez:md-warnings, r=QuietMisdreqvusbors-16/+57
Md warnings Fixes #45365. r? @QuietMisdreavus
2017-12-07Rollup merge of #46526 - GuillaumeGomez:mobile-sidebar, r=QuietMisdreavusGuillaume Gomez-5/+76
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">