]> git.lizzy.rs Git - rust.git/commitdiff
Fix comments around test harness generation
authorAlexey Shmalko <rasen.dubi@gmail.com>
Wed, 17 Apr 2019 09:02:04 +0000 (12:02 +0300)
committerAlexey Shmalko <rasen.dubi@gmail.com>
Wed, 17 Apr 2019 09:02:04 +0000 (12:02 +0300)
src/libsyntax/test.rs
src/libsyntax_ext/test.rs

index 6f03c5854036c4e99c18429647a678e420bc2b10..03d0eff266e75845d437e233c97e3b249eed81e4 100644 (file)
@@ -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;
index 0dbcb7ce0b7e21a351324b7c35a742d7a75dea61..0fa5cd64360c065775168955f038af32e66f5d83 100644 (file)
@@ -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)])
     };