ScrapedDocTest in rustdoc::doctest - Rust (original) (raw)
Struct ScrapedDocTest
pub(crate) struct ScrapedDocTest {
filename: FileName,
line: usize,
langstr: LangString,
text: String,
name: String,
}
Expand description
A doctest scraped from the code, ready to be turned into a runnable test.
The pipeline goes: clean AST -> ScrapedDoctest
-> RunnableDoctest
.run_merged_tests converts a bunch of scraped doctests to a single runnable doctest, while generate_unique_doctest does the standalones.
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 232 bytes