about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/doc-examples.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-07-29 22:24:46 +0000
committerbors <bors@rust-lang.org>2020-07-29 22:24:46 +0000
commit6b269e44322cfca727fd0e793d3a60bd371cbcae (patch)
treec1f6506d49873a56567536557959448ba6ac90c2 /src/test/rustdoc-ui/coverage/doc-examples.rs
parentdb0492ace429cfeb3567e2c04e300be7df9972ff (diff)
parent29df0508f3106d152ad2cd1b41cf627b98ea9d6f (diff)
downloadrust-6b269e44322cfca727fd0e793d3a60bd371cbcae.tar.gz
rust-6b269e44322cfca727fd0e793d3a60bd371cbcae.zip
Auto merge of #73767 - P1n3appl3:rustdoc-formats, r=tmandry
Refactor librustdoc html backend

This PR moves several types out of the librustdoc::html module so that they can be used by a future json backend. These changes are a re-implementation of [some work done 6 months ago](https://github.com/rust-lang/rust/compare/master...GuillaumeGomez:multiple-output-formats) by @GuillaumeGomez. I'm currently working on said json backend and will put up an RFC soon with the proposed implementation.

There are a couple of changes that are more substantial than relocating structs to a different module:
1. The `Cache` is no longer part of the `html::render::Context` type and therefor it needs to be explicitly passed to any functions that access it.
2. The driving function `html::render::run` has been rewritten to use the `FormatRenderer` trait which should allow different backends to re-use the driving code.

r? @GuillaumeGomez

cc @tmandry @betamos
Diffstat (limited to 'src/test/rustdoc-ui/coverage/doc-examples.rs')
0 files changed, 0 insertions, 0 deletions