Skip to content

Commit 43b65b5

Browse files
repnopQuietMisdreavus
authored andcommitted
Tidy up source file and fix typo.
1 parent b79fdb8 commit 43b65b5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/librustdoc/test.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ pub fn make_test(s: &str,
407407
let (already_has_main, already_has_extern_crate) = crate::syntax::with_globals(|| {
408408
use crate::syntax::{ast, parse::{self, ParseSess}, source_map::FilePathMapping};
409409
use crate::syntax_pos::FileName;
410-
410+
411411
let filename = FileName::Anon;
412412
let source = s.to_owned();
413413
let sess = ParseSess::new(FilePathMapping::empty());
@@ -424,11 +424,11 @@ pub fn make_test(s: &str,
424424
found_main = true;
425425
}
426426
}
427-
}
428-
429-
if !found_extern_crate {
427+
}
428+
429+
if !found_extern_crate {
430430
if let ast::ItemKind::ExternCrate(original) = item.node {
431-
// This code will never be reached if `cratename` is none ecause
431+
// This code will never be reached if `cratename` is none because
432432
// `found_extern_crate` is initialized to `true` if it is none.
433433
let cratename = cratename.unwrap();
434434

@@ -1051,7 +1051,7 @@ assert_eq!(2+2, 4);
10511051
#[test]
10521052
fn make_test_issues_21299_33731() {
10531053
let opts = TestOptions::default();
1054-
1054+
10551055
let input =
10561056
"// fn main
10571057
assert_eq!(2+2, 4);";

0 commit comments

Comments
 (0)