rust/src
bors 70090118c2 Auto merge of #78752 - jyn514:html-diff, r=GuillaumeGomez
Give a better error when rustdoc tests fail

- Run the default rustdoc against the current rustdoc
- Diff output recursively
- Colorize diff output

Closes https://github.com/rust-lang/rust/issues/78750.

## Resolved questions

- Should this be opt-in instead of on by default?
  + No
- Should this call through to `delta`? That's not a very common program to have installed, but I'm not sure how to do diffs after the fact. Maybe `compiletest` can take a `--syntax-highlighter` parameter or something?
  + I decided to use `delta` if available and `diff --color` otherwise. It prints a warning if delta isn't installed so you know you can get nicer diffs

## Open questions.

- What version of rustdoc would this compare against? Ideally it would compare against `$(git merge-base HEAD origin/master)` - maybe that's feasible if we install those artifacts from CI?
- Does it always make sense to compare the tests? Especially for new tests, I'm not sure how useful it would be ... but then again, one of the questions I want to know most as a reviewer is 'did it break before?'.

r? `@GuillaumeGomez`
cc `@Mark-Simulacrum`
2020-11-22 01:09:04 +00:00
..
bootstrap Auto merge of #79115 - cuviper:rust-description, r=Mark-Simulacrum 2020-11-21 15:43:09 +00:00
build_helper Fix even more URLs 2020-11-05 20:11:29 +01:00
ci Revert "Auto merge of #79132 - pietroalbini:beta-next, r=Mark-Simulacrum" 2020-11-18 11:18:40 +01:00
doc Rollup merge of #78714 - m-ou-se:simplify-local-streams, r=KodrAus 2020-11-16 17:26:27 +01:00
etc BTreeMap: reuse NodeRef as Root, keep BoxedNode for edges only, ban Unique 2020-11-18 10:07:42 +01:00
librustdoc Rollup merge of #79264 - jyn514:less-doctree, r=GuillaumeGomez 2020-11-21 19:44:18 +01:00
llvm-project@ee16174578 Bump LLVM for DeadArgElim fix 2020-10-22 18:37:03 -04:00
test Auto merge of #78461 - TimDiekmann:vec-alloc, r=Amanieu 2020-11-21 22:46:50 +00:00
tools Auto merge of #78752 - jyn514:html-diff, r=GuillaumeGomez 2020-11-22 01:09:04 +00:00
README.md
stage0.txt Bump stage0 rustfmt to nightly-2020-11-19 2020-11-18 23:11:38 -05:00
version bump version to 1.50.0 2020-11-13 09:47:16 +01:00

This directory contains the source code of the rust project, including:

  • The test suite
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.