We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
crates
1 parent dd8fc7d commit 22de23eCopy full SHA for 22de23e
src/librustdoc/test.rs
@@ -395,6 +395,7 @@ pub fn make_test(s: &str,
395
// Now push any outer attributes from the example, assuming they
396
// are intended to be crate attributes.
397
prog.push_str(&crate_attrs);
398
+ prog.push_str(&crates);
399
400
// Uses libsyntax to parse the doctest and find if there's a main fn and the extern
401
// crate already is included.
@@ -488,6 +489,8 @@ pub fn make_test(s: &str,
488
489
prog.push_str("\n}");
490
}
491
492
+ debug!("final doctest:\n{}", prog);
493
+
494
(prog, line_offset)
495
496
0 commit comments