Skip to content

Commit 7bf33f0

Browse files
committed
Fix comments around test harness generation
1 parent 258e3b3 commit 7bf33f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libsyntax/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ fn mk_main(cx: &mut TestCtxt<'_>) -> P<ast::Item> {
327327
// Writing this out by hand with 'ignored_span':
328328
// pub fn main() {
329329
// #![main]
330-
// test::test_main_static(::std::os::args().as_slice(), &[..tests]);
330+
// test::test_main_static(&[..tests]);
331331
// }
332332
let sp = ignored_span(cx, DUMMY_SP);
333333
let ecx = &cx.ext_cx;

src/libsyntax_ext/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ pub fn expand_test_or_bench(
8686
cx.path(sp, vec![test_id, cx.ident_of(name)])
8787
};
8888

89-
// creates test::$name
89+
// creates test::ShouldPanic::$name
9090
let should_panic_path = |name| {
9191
cx.path(sp, vec![test_id, cx.ident_of("ShouldPanic"), cx.ident_of(name)])
9292
};

0 commit comments

Comments
 (0)