* Allow underscores in the link type name * Add some tests for include anchors * Include parts of Rust files and hide the rest Fixes #618. * Increase min supported Rust version to 1.35 * Add a test for a behavior of rustdoc_include I want to depend on At first I thought this was a bug, but then I looked at some use cases we have in TRPL and decided this was a feature that I'd like to use.
11 lines
280 B
Rust
11 lines
280 B
Rust
fn some_other_function() {
|
|
// ANCHOR: unused-anchor-that-should-be-stripped
|
|
assert!($TEST_STATUS);
|
|
// ANCHOR_END: unused-anchor-that-should-be-stripped
|
|
}
|
|
|
|
// ANCHOR: rustdoc-include-anchor
|
|
fn main() {
|
|
some_other_function();
|
|
}
|
|
// ANCHOR_END: rustdoc-include-anchor
|