rust/src/librustdoc
bors 572d3d9634 Auto merge of #60584 - jonas-schievink:ice-panic-hook, r=oli-obk
Use `panic::set_hook` to print the ICE message

This allows custom frontends and backends to override the hook with their own, for example to point people to a different issue tracker.

ICE messages are printed in a slightly different order now. Nightly prints:

```
thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:347:21
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
error: aborting due to 2 previous errors

Some errors have detailed explanations: E0277, E0658.
For more information about an error, try `rustc --explain E0277`.

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.36.0-nightly (08bfe1612 2019-05-02) running on x86_64-unknown-linux-gnu
```

After this PR, rustc prints:

```
thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:347:21
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.36.0-dev running on x86_64-unknown-linux-gnu

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0277, E0658.
For more information about an error, try `rustc --explain E0277`.
```
2019-09-15 00:10:08 +00:00
..
clean Use Symbol in external_path(). 2019-09-11 11:31:38 +10:00
html Auto merge of #60387 - Goirad:test-expansion, r=ollie27 2019-09-10 12:19:41 +00:00
passes Auto merge of #60387 - Goirad:test-expansion, r=ollie27 2019-09-10 12:19:41 +00:00
test Separate librustcdoc module 2019-06-16 14:17:01 +03:00
theme librustdoc: Unconfigure tests during normal build 2019-08-02 01:59:01 +03:00
Cargo.toml Remove ReentrantMutex 2019-08-11 10:36:46 -04:00
config.rs Add unstable --test-builder to rustdoc 2019-09-10 16:59:31 -04:00
core.rs address rebase changes 2019-09-04 09:24:33 -07:00
docfs.rs Better handling of the sender channel part in rustdoc file writing 2019-06-21 12:00:49 +02:00
doctree.rs rustdoc: Replace HirVec with slices in doctree 2019-08-11 10:36:46 -04:00
externalfiles.rs Reduce nesting in externalfiles implementation 2019-08-11 10:47:58 -04:00
fold.rs Remove ReentrantMutex 2019-08-11 10:36:46 -04:00
lib.rs Auto merge of #60584 - jonas-schievink:ice-panic-hook, r=oli-obk 2019-09-15 00:10:08 +00:00
markdown.rs Rollup merge of #64072 - limira:patch-1, r=ollie27 2019-09-11 02:38:04 +02:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00
test.rs Auto merge of #64328 - Mark-Simulacrum:rustdoc-find-rustc, r=GuillaumeGomez 2019-09-12 08:29:55 +00:00
theme.rs librustdoc: Unconfigure tests during normal build 2019-08-02 01:59:01 +03:00
visit_ast.rs Mutate DocContext from LibEmbargoVisitor and RustdocVisitor 2019-08-26 18:51:34 -04:00
visit_lib.rs Mutate DocContext from LibEmbargoVisitor and RustdocVisitor 2019-08-26 18:51:34 -04:00

For more information about how librustdoc works, see the rustc guide.