rust/src/librustdoc
bors 966fdf15e2 Auto merge of #46883 - QuietMisdreavus:faildown, r=GuillaumeGomez
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-29 03:23:37 +00:00
..
clean Auto merge of #46894 - detrumi:fix-const-eval-trait, r=eddyb 2017-12-24 12:48:57 +00:00
html Auto merge of #46883 - QuietMisdreavus:faildown, r=GuillaumeGomez 2017-12-29 03:23:37 +00:00
passes Hide trait impl with private trait type parameter 2017-11-30 21:18:36 +01:00
build.rs *: strip calls to cc::Build::compile 2017-11-28 18:15:30 -05:00
Cargo.toml Auto merge of #46503 - Aaron1011:librustdoc_log, r=Mark-Simulacrum 2017-12-05 09:00:35 +00:00
core.rs Combine GlobalArenas and DroplessArena into AllArenas 2017-12-21 19:21:39 +01:00
doctree.rs [Syntax Breaking] Rename DefaultImpl to AutoImpl 2017-11-03 16:13:20 -02:00
externalfiles.rs Migrate to eprint/eprintln macros where appropriate. 2017-09-28 11:38:35 -04:00
fold.rs use field init shorthand EVERYWHERE 2017-08-15 15:29:17 -07:00
lib.rs rustdoc: add option to abort process on markdown differences 2017-12-27 10:09:22 -06:00
markdown.rs Use PathBuf instead of String where applicable 2017-12-14 11:22:08 +01:00
plugins.rs rustc_back: move dynamic_lib to rustc_metadata. 2017-12-04 18:25:29 +02:00
test.rs Rollup merge of #46814 - varkor:contrib-7, r=alexcrichton 2017-12-22 02:50:49 +08:00
visit_ast.rs stub out trait aliases in librustdoc 2017-12-14 12:56:26 -05:00
visit_lib.rs Add field is_import to def::Export. 2017-12-05 17:23:01 -08:00