Replace ToJson with serde
This commit is contained in:
parent
15babed8b7
commit
f1070b1525
8 changed files with 52 additions and 79 deletions
4
src/test/rustdoc-ui/coverage/html.rs
Normal file
4
src/test/rustdoc-ui/coverage/html.rs
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
// compile-flags:-Z unstable-options --output-format html --show-coverage
|
||||
|
||||
/// Foo
|
||||
pub struct Xo;
|
||||
2
src/test/rustdoc-ui/coverage/html.stderr
Normal file
2
src/test/rustdoc-ui/coverage/html.stderr
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
error: html output format isn't supported for the --show-coverage option
|
||||
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
// build-pass
|
||||
// compile-flags:-Z unstable-options --show-coverage
|
||||
// compile-flags:-Z unstable-options --output-format json --show-coverage
|
||||
|
||||
pub mod foo {
|
||||
/// Hello!
|
||||
|
|
|
|||
|
|
@ -1,7 +1 @@
|
|||
+-------------------------------------+------------+------------+------------+
|
||||
| File | Documented | Total | Percentage |
|
||||
+-------------------------------------+------------+------------+------------+
|
||||
| ...test/rustdoc-ui/coverage/json.rs | 7 | 13 | 53.8% |
|
||||
+-------------------------------------+------------+------------+------------+
|
||||
| Total | 7 | 13 | 53.8% |
|
||||
+-------------------------------------+------------+------------+------------+
|
||||
{"$DIR/json.rs":{"total":13,"with_docs":7}}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
// compile-flags:-Z unstable-options --output-format
|
||||
// should-fail
|
||||
|
||||
/// toudoum!
|
||||
pub struct SomeStruct;
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
warning: the 'output-format' flag is considered deprecated
|
||||
|
|
||||
= warning: see issue #44136 <https://github.com/rust-lang/rust/issues/44136> for more information
|
||||
|
||||
error: too many file operands
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue