rust/src/librustdoc
bors 24bfcee941 Auto merge of #82295 - jyn514:feature-gate, r=Manishearth
[intra-doc links] Don't check feature gates of items re-exported across crates

It should be never break another crate to re-export a public item.

Note that this doesn't check the feature gate at
*all* for other crates:

- Feature-gates aren't currently serialized, so the only way to check
  the gate is with ad-hoc attribute checking.
- Checking the feature gate twice (once when documenting the original
  crate and one when documenting the current crate) seems not great.

This should still catch using the feature most of the time though, since
people tend to document their own crates.

Closes https://github.com/rust-lang/rust/issues/82284.

r? `@Manishearth`
2021-02-22 00:04:09 +00:00
..
clean Don't render [src] link on dummy spans 2021-02-20 19:51:38 +01:00
doctest Fix injected errors when running doctests on a crate named after a keyword 2021-02-11 17:16:43 -05:00
formats Remove Function all_types and ret_types fields 2021-02-05 17:23:52 +01:00
html Don't render [src] link on dummy spans 2021-02-20 19:51:38 +01:00
json Auto merge of #82020 - jyn514:mut-passes, r=camelid,GuillaumeGomez 2021-02-19 16:39:03 +00:00
passes Auto merge of #82295 - jyn514:feature-gate, r=Manishearth 2021-02-22 00:04:09 +00:00
theme Add test to check if minified theme are handled correctly 2020-02-12 15:49:39 +01:00
Cargo.toml bumped smallvec deps 2021-02-14 18:03:11 +03:00
config.rs rustdoc: treat edition 2021 as unstable 2021-02-16 19:17:01 -08:00
core.rs Show negative implementation of Sized trait 2021-02-19 22:38:07 +01:00
docfs.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
doctest.rs Only store a LocalDefId in hir::MacroDef. 2021-02-15 19:35:55 +01:00
doctree.rs Move StructType to clean, remove it from Unions, make JSON output whether something is a union 2021-01-20 16:46:34 -05:00
error.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
externalfiles.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
fold.rs Rename VariantKind -> Variant 2021-01-15 13:55:03 -05:00
lib.rs Rollup merge of #82261 - ojeda:rustdoc-argfile, r=jyn514 2021-02-19 02:49:12 +01:00
markdown.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
README.md rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org 2020-03-10 17:08:18 -03:00
theme.rs Replace under-used ImplPolarity enum with a boolean 2021-01-09 14:59:37 +01:00
visit_ast.rs Only store a LocalDefId in hir::MacroDef. 2021-02-15 19:35:55 +01:00
visit_lib.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00

For more information about how librustdoc works, see the rustc dev guide.