rust/src
Guillaume Gomez 92861c7927
Rollup merge of #80845 - GuillaumeGomez:item-kind-transition, r=jyn514
Make ItemKind::ExternCrate looks like hir::ItemKind::ExternCrate to make transition over hir::ItemKind simpler

It was surprisingly difficult to make this change, mostly because of two issues:

* We now store the `ExternCrate` name in the parent struct (`clean::Item`), which forced me to modify the json conversion code a bit more than expected.
* The second problem was that, since we now have a `Some(name)`, it was trying to render it, ending up in a panic because we ended up in a `unreachable` statement. The solution was simply to add `!item.is_extern_crate()` in `formats::renderer` before calling `cx.item(item, &cache)?;`.

I'll continue to replace all the `clean::ItemKind` variants one by one until it looks exactly like `hir::ItemKind`. Then we'll simply discard the rustdoc type. Once this done, we'll be able to discard `clean::Item` too to use `hir::Item`.

r? ``@jyn514``
2021-03-05 21:44:37 +01:00
..
bootstrap Auto merge of #81451 - nikic:llvm-12, r=nagisa 2021-03-04 15:16:44 +00:00
build_helper
ci Auto merge of #82747 - JohnTitor:pin-es-check-version, r=Mark-Simulacrum 2021-03-04 19:24:21 +00:00
doc Rollup merge of #82690 - jyn514:remove-pass-docs, r=Manishearth 2021-03-04 21:56:33 +01:00
etc
librustdoc Rollup merge of #80845 - GuillaumeGomez:item-kind-transition, r=jyn514 2021-03-05 21:44:37 +01:00
llvm-project@40618a2340
rustdoc-json-types
test Auto merge of #82795 - m-ou-se:rollup-uzx0b92, r=m-ou-se 2021-03-05 13:34:33 +00:00
tools Auto merge of #82553 - tmiasko:update-tracing, r=Mark-Simulacrum 2021-03-03 18:01:29 +00:00
README.md
stage0.txt
version

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.