Matthias Krüger
951a3661ad
remove redundant import (clippy::single_component_path_imports)
...
remove redundant format!() call (clippy::useless_format)
don't use ok() before calling expect() (clippy::ok_expect)
2020-03-20 20:23:03 +01:00
Guillaume Gomez
f1070b1525
Replace ToJson with serde
2020-03-02 13:19:10 +01:00
Guillaume Gomez
10492c392a
Add support for json output in show-coverage option
2020-03-02 13:18:45 +01:00
Vadim Petrochenkov
e08c279eac
Rename syntax
to rustc_ast
in source code
2020-02-29 21:59:09 +03:00
David Tolnay
90adafbc9e
Distinguish between private items and hidden items in rustdoc
...
I believe rustdoc should not be conflating private items (visibility
lower than `pub`) and hidden items (attribute `doc(hidden)`). This
matters now that Cargo is passing --document-private-items by default
for bin crates. In bin crates that rely on macros, intentionally hidden
implementation details of the macros can overwhelm the actual useful
internal API that one would want to document.
This PR restores the strip-hidden pass when documenting private items,
and introduces a separate unstable --document-hidden-items option to
skip the strip-hidden pass. The two options are orthogonal to one
another.
2020-01-04 11:28:53 -08:00
Mazdak Farrokhzad
4ff12ce4c1
Normalize syntax::symbol
imports.
2020-01-02 13:57:04 +01:00
Vadim Petrochenkov
70f1d57048
Rename syntax_pos
to rustc_span
in source code
2020-01-01 09:15:18 +03:00
Mark Rousskov
a06baa56b9
Format the world
2019-12-22 17:42:47 -05:00
Mark Rousskov
04b27efa00
Move to print functions on types instead of impl fmt::Display
...
This will eventually allow us to easily pass in more parameters to the
functions without TLS or other such hacks
2019-09-13 19:44:44 -04:00
Nicholas Nethercote
fb084a48e2
Pass a Symbol
to check_name
, emit_feature_err
, and related functions.
2019-05-13 09:29:22 +10:00
John Kåre Alsaker
51938c61f6
Make the rustc driver and interface demand driven
2019-03-10 04:49:45 +01:00
QuietMisdreavus
e28cf74162
remove unused Display impl
2019-03-05 14:18:26 -06:00
QuietMisdreavus
1b63543dc6
track items per-file instead of per-type
2019-02-28 16:13:55 -06:00
QuietMisdreavus
3ce19b4a2c
tweak wording of extern types
2019-02-28 16:11:21 -06:00
QuietMisdreavus
5eb1ab5265
print doc coverage as a table of individual item types
2019-02-28 16:11:21 -06:00
QuietMisdreavus
95500c078b
refactor: combine item count numbers into a new struct
2019-02-28 16:07:45 -06:00
QuietMisdreavus
fc9459351c
count fewer items in calculate-doc-coverage
2019-02-28 16:01:27 -06:00
QuietMisdreavus
009c91a294
add option to calculate documentation coverage
2019-02-28 16:01:27 -06:00