Skip to content

Commit fbca453

Browse files
committed
Fix compiletest and doc comment
1 parent 4005851 commit fbca453

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/build_helper/src/git.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub enum PathFreshness {
5757
/// whose modifications would invalidate the artifact.
5858
/// Each pathspec can also be a negative match, i.e. `:!foo`. This matches changes outside
5959
/// the `foo` directory.
60-
/// See https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec
60+
/// See <https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec>
6161
/// for how git `pathspec` works.
6262
///
6363
/// The function behaves differently in CI and outside CI.

src/tools/compiletest/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ fn modified_tests(config: &Config, dir: &Utf8Path) -> Result<Vec<Utf8PathBuf>, S
745745
&vec!["rs", "stderr", "fixed"],
746746
)?;
747747
// Add new test cases to the list, it will be convenient in daily development.
748-
let untracked_files = get_git_untracked_files(Some(dir))?.unwrap_or(vec![]);
748+
let untracked_files = get_git_untracked_files(Some(dir.as_std_path()))?.unwrap_or(vec![]);
749749

750750
let all_paths = [&files[..], &untracked_files[..]].concat();
751751
let full_paths = {

0 commit comments

Comments
 (0)