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.
1 parent 5313e87 commit b3d6597Copy full SHA for b3d6597
src/librustdoc/test.rs
@@ -417,7 +417,8 @@ fn partition_source(s: &str) -> (String, String) {
417
for line in s.lines() {
418
let trimline = line.trim();
419
let header = trimline.is_whitespace() ||
420
- trimline.starts_with("#![");
+ trimline.starts_with("#![") ||
421
+ trimline.starts_with("extern crate");
422
if !header || after_header {
423
after_header = true;
424
after.push_str(line);
@@ -858,8 +859,8 @@ use asdf::qwop;
858
859
assert_eq!(2+2, 4);";
860
let expected =
861
"#![allow(unused)]
-fn main() {
862
extern crate asdf;
863
+fn main() {
864
use asdf::qwop;
865
assert_eq!(2+2, 4);
866
}".to_string();
0 commit comments