about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexey Shmalko <rasen.dubi@gmail.com>2019-04-17 12:02:04 +0300
committerAlexey Shmalko <rasen.dubi@gmail.com>2019-04-17 12:02:04 +0300
commit7bf33f00bf4ece4a98c6ea5d8bb9331f2445004b (patch)
tree1d2bd31368cfccc305dc88b88d0589d20e55b9cd /src
parent258e3b3a75a0da006cd492307fc46ef605e774ad (diff)
downloadrust-7bf33f00bf4ece4a98c6ea5d8bb9331f2445004b.tar.gz
rust-7bf33f00bf4ece4a98c6ea5d8bb9331f2445004b.zip
Fix comments around test harness generation
Diffstat (limited to 'src')
-rw-r--r--src/libsyntax/test.rs2
-rw-r--r--src/libsyntax_ext/test.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/test.rs b/src/libsyntax/test.rs
index 6f03c585403..03d0eff266e 100644
--- a/src/libsyntax/test.rs
+++ b/src/libsyntax/test.rs
@@ -327,7 +327,7 @@ fn mk_main(cx: &mut TestCtxt<'_>) -> P<ast::Item> {
     // Writing this out by hand with 'ignored_span':
     //        pub fn main() {
     //            #![main]
-    //            test::test_main_static(::std::os::args().as_slice(), &[..tests]);
+    //            test::test_main_static(&[..tests]);
     //        }
     let sp = ignored_span(cx, DUMMY_SP);
     let ecx = &cx.ext_cx;
diff --git a/src/libsyntax_ext/test.rs b/src/libsyntax_ext/test.rs
index 0dbcb7ce0b7..0fa5cd64360 100644
--- a/src/libsyntax_ext/test.rs
+++ b/src/libsyntax_ext/test.rs
@@ -86,7 +86,7 @@ pub fn expand_test_or_bench(
         cx.path(sp, vec![test_id, cx.ident_of(name)])
     };
 
-    // creates test::$name
+    // creates test::ShouldPanic::$name
     let should_panic_path = |name| {
         cx.path(sp, vec![test_id, cx.ident_of("ShouldPanic"), cx.ident_of(name)])
     };