@@ -1379,7 +1379,7 @@ impl<'test> TestCx<'test> {
13791379 }
13801380 }
13811381
1382- /// Returns true if we should report an error about `actual_error`,
1382+ /// Returns ` true` if we should report an error about `actual_error`,
13831383 /// which did not match any of the expected error. We always require
13841384 /// errors/warnings to be explicitly listed, but only require
13851385 /// helps/notes if there are explicit helps/notes given.
@@ -1974,14 +1974,14 @@ impl<'test> TestCx<'test> {
19741974 fs:: write ( & outfile, out) . unwrap ( ) ;
19751975 }
19761976
1977- /// Create a filename for output with the given extension. Example:
1978- /// /.../testname.revision.mode/testname.extension
1977+ /// Creates a filename for output with the given extension.
1978+ /// E.g., ` /.../testname.revision.mode/testname.extension`.
19791979 fn make_out_name ( & self , extension : & str ) -> PathBuf {
19801980 self . output_base_name ( ) . with_extension ( extension)
19811981 }
19821982
1983- /// Directory where auxiliary files are written. Example:
1984- /// /.../testname.revision.mode/auxiliary/
1983+ /// Gets the directory where auxiliary files are written.
1984+ /// E.g., ` /.../testname.revision.mode/auxiliary/`.
19851985 fn aux_output_dir_name ( & self ) -> PathBuf {
19861986 self . output_base_dir ( )
19871987 . join ( "auxiliary" )
@@ -1993,7 +1993,7 @@ impl<'test> TestCx<'test> {
19931993 output_testname_unique ( self . config , self . testpaths , self . safe_revision ( ) )
19941994 }
19951995
1996- /// The revision, ignored for Incremental since it wants all revisions in
1996+ /// The revision, ignored for incremental compilation since it wants all revisions in
19971997 /// the same directory.
19981998 fn safe_revision ( & self ) -> Option < & str > {
19991999 if self . config . mode == Incremental {
@@ -2003,16 +2003,16 @@ impl<'test> TestCx<'test> {
20032003 }
20042004 }
20052005
2006- /// Absolute path to the directory where all output for the given
2007- /// test/revision should reside. Example:
2008- /// /path/to/build/host-triple/test/ui/relative/testname.revision.mode/
2006+ /// Gets the absolute path to the directory where all output for the given
2007+ /// test/revision should reside.
2008+ /// E.g., ` /path/to/build/host-triple/test/ui/relative/testname.revision.mode/`.
20092009 fn output_base_dir ( & self ) -> PathBuf {
20102010 output_base_dir ( self . config , self . testpaths , self . safe_revision ( ) )
20112011 }
20122012
2013- /// Absolute path to the base filename used as output for the given
2014- /// test/revision. Example:
2015- /// /.../relative/testname.revision.mode/testname
2013+ /// Gets the absolute path to the base filename used as output for the given
2014+ /// test/revision.
2015+ /// E.g., ` /.../relative/testname.revision.mode/testname`.
20162016 fn output_base_name ( & self ) -> PathBuf {
20172017 output_base_name ( self . config , self . testpaths , self . safe_revision ( ) )
20182018 }
0 commit comments