* 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
458 B
Rust
11 lines
458 B
Rust
// The next line will cause a `testing` test to fail if the anchor feature is broken in such a way
|
|
// that the whole file gets mistakenly included.
|
|
assert!(!$TEST_STATUS);
|
|
|
|
// ANCHOR: myanchor
|
|
// ANCHOR: unendinganchor
|
|
// The next line will cause a `rendered_output` test to fail if the anchor feature is broken in
|
|
// such a way that the content between anchors isn't included.
|
|
// unique-string-for-anchor-test
|
|
assert!($TEST_STATUS);
|
|
// ANCHOR_END: myanchor
|