rust/src/librustdoc
kennytm 0e9d6f9bb0
Rollup merge of #49864 - QuietMisdreavus:doctest-target-features, r=GuillaumeGomez
add target features when extracting and running doctests

When rendering documentation, rustdoc will happily load target features into the cfg environment from the current target, but fails to do this when doing anything with doctests. This would lead to situations where, thanks to https://github.com/rust-lang/rust/pull/48759, functions tagged with `#[target_feature]` couldn't run doctests, thanks to the automatic `#[doc(cfg(target_feature = "..."))]`.

Currently, there's no way to pass codegen options to rustdoc that will affect its rustc sessions, but for now this will let you use target features that come default on the platform you're targeting.

Fixes https://github.com/rust-lang/rust/issues/49723
2018-04-14 18:50:41 +08:00
..
clean Use InternedString rather than Name for RegionParameterDef 2018-04-13 18:41:40 +01:00
html Auto merge of #49504 - GuillaumeGomez:doc-all-types, r=QuietMisdreavus 2018-04-10 06:23:52 +00:00
passes Remove impl Foo for .. in favor of auto trait Foo 2018-01-13 18:48:00 +03:00
Cargo.toml Auto merge of #48343 - Mark-Simulacrum:release-step, r=kennytm 2018-02-22 23:25:39 +00:00
core.rs Rollup merge of #49451 - QuietMisdreavus:epoch-doctests, r=GuillaumeGomez 2018-04-01 18:04:54 +02:00
doctree.rs Generate documentation for auto-trait impls 2018-02-18 16:29:24 -05:00
externalfiles.rs Remove hoedown from rustdoc 2018-02-16 23:17:15 +01:00
fold.rs use field init shorthand EVERYWHERE 2017-08-15 15:29:17 -07:00
lib.rs Auto merge of #49698 - SimonSapin:unicode-for-everyone, r=alexcrichton 2018-04-12 00:35:33 +00:00
markdown.rs suppress the default allow(unused) under --display-warnings 2018-04-02 14:37:16 -05:00
plugins.rs rustc_back: move dynamic_lib to rustc_metadata. 2017-12-04 18:25:29 +02:00
README.md Move librustdoc readme to rustc guide 2018-03-12 20:09:50 -05:00
test.rs add target features when extracting and running doctests 2018-04-10 19:22:11 -05:00
theme.rs Pass themes folder as parameter 2018-02-08 10:53:09 +01:00
visit_ast.rs AST/HIR: Clarify what the optional name in extern crate items mean 2018-03-17 22:12:21 +03:00
visit_lib.rs cleanup 2018-01-22 15:24:27 +05:30

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