Commit graph

29 commits

Author SHA1 Message Date
Guillaume Gomez
1e6ced3532 Create rustdoc_internals feature gate 2021-11-24 21:57:18 +01:00
Guillaume Gomez
eda4cfb132 Add test for enum tuple variants and tuple struct doc count 2021-09-10 10:49:42 +02:00
Frank Steffahn
bf88b113ea Fix typos “a”→“an” 2021-08-22 15:35:11 +02:00
Joshua Nelson
03df65497e feature gate doc(primitive) 2021-08-16 05:41:16 +00:00
Yuki Okushi
014e22c836
Rollup merge of #87451 - GuillaumeGomez:tuple-struct-field-doc, r=jyn514
Add support for tuple struct field documentation

Fixes  #42615.
This is #80320 updated to new codebase and with added tests.
Part of https://github.com/rust-lang/rust/issues/83255.

cc ```@camelid``` (since you were involved on the original PR).
r? ```@jyn514```
2021-07-29 06:11:45 +09:00
Santiago Pastorino
38bdd0e019
Make all tests use type_alias_impl_trait feature instead of min 2021-07-27 12:33:02 -03:00
Guillaume Gomez
fbf78e1f9c Add test for enum item tuple fields documentation 2021-07-26 11:15:20 +02:00
Joshua Nelson
f67103b9b2 Add back missing trait test
Rustdoc has been able to deal with `impl trait` for almost a year now.
2021-04-09 09:10:11 -04:00
Joshua Nelson
40ca3521ad rustdoc: Don't generate blanket impls when running --show-coverage
get_blanket_impls is the slowest part of rustdoc, and the coverage pass
completely ignores blanket impls. This stops running it at all, and also
removes some unnecessary checks in `calculate_doc_coverage` that ignored
the impl anyway.

We don't currently measure --show-coverage in perf.rlo, but I tested
this locally on cargo and it brought the time down from 2.9 to 1.6
seconds.
2021-04-09 09:09:19 -04:00
Mark Rousskov
8a3edb1d66 Update tests for extern block linting 2021-01-13 07:49:16 -05:00
Joshua Nelson
09a3bc10ca Update coverage output now that primitives have proper spans 2020-11-26 14:23:42 -05:00
Guillaume Gomez
685444008b Extend test to ensure that items inherit lint level from the parent 2020-10-12 14:32:41 +02:00
Guillaume Gomez
22465b35a6 Apply same treatment to MISSING_DOC_CODE_EXAMPLES 2020-10-12 13:46:37 +02:00
Guillaume Gomez
b31f5d05b1 Inherit lint level from parents 2020-10-12 13:46:37 +02:00
Roman
02e6b861eb rustdoc: skip allow missing doc in cover. report
During the document coverage reporting with
```bash
rustdoc something.rs -Z unstable-options --show-coverage
```

the coverage report also includes parts of the code that are marked
with `#[allow(missing_docs)]`, which outputs lower numbers in the
coverage report even though these parts should be ignored for the
calculation.

Co-authored-by: Joshua Nelson <joshua@yottadb.com>
2020-10-12 13:46:37 +02:00
Guillaume Gomez
15d25a8a72 Add test for ignored private doc test 2020-09-12 19:02:15 +02:00
Guillaume Gomez
9c254c18d6 Update how doc examples are counted 2020-08-20 21:26:57 +02:00
Guillaume Gomez
631c80659d Remove "total" columns in --show-coverage output 2020-08-20 21:09:40 +02:00
Guillaume Gomez
6fb7e02a36 Update rustdoc coverage UI test 2020-08-20 17:42:17 +02:00
Guillaume Gomez
f957bae74e Update rustdoc-ui tests 2020-08-18 14:32:15 +02:00
Val Markovic
2add9d8fc2 Moving all rustdoc-ui tests to check-pass
These were all build-pass before and don't seem to need it.

Helps with #62277
2020-04-19 16:40:53 -07:00
Guillaume Gomez
b6466273ba remove output-format test 2020-03-02 13:20:32 +01:00
Guillaume Gomez
f1070b1525 Replace ToJson with serde 2020-03-02 13:19:10 +01:00
Guillaume Gomez
15babed8b7 add tests for rustdoc output-format json 2020-03-02 13:18:45 +01:00
varkor
2777386dc2 Replace abstract type with type alias impl Trait 2019-08-02 02:44:36 +01:00
varkor
c28ce3e4ca Replace "existential" by "opaque" 2019-08-02 02:44:36 +01:00
Yuki Okushi
c004451a20 Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
QuietMisdreavus
515dbe73ab update rustdoc coverage tests with new table layout 2019-02-28 16:24:38 -06:00
QuietMisdreavus
63bdd29ef4 add tests for doc coverage 2019-02-28 16:11:21 -06:00