about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2025-04-17 09:57:09 +0200
committerJakub Beránek <berykubik@gmail.com>2025-04-20 13:14:08 +0200
commitfbca453d7dcf55cd57baf1a01dd45e3c21086dd5 (patch)
treed60d0310bf05bf9c80c74a97a5aefb4d67c72e4d
parent40058519bae2c4921e5a1cf5db42c0e9861b156f (diff)
downloadrust-fbca453d7dcf55cd57baf1a01dd45e3c21086dd5.tar.gz
rust-fbca453d7dcf55cd57baf1a01dd45e3c21086dd5.zip
Fix compiletest and doc comment
-rw-r--r--src/build_helper/src/git.rs2
-rw-r--r--src/tools/compiletest/src/lib.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/build_helper/src/git.rs b/src/build_helper/src/git.rs
index 4b6cc08ef78..8d53a83ea31 100644
--- a/src/build_helper/src/git.rs
+++ b/src/build_helper/src/git.rs
@@ -57,7 +57,7 @@ pub enum PathFreshness {
 /// whose modifications would invalidate the artifact.
 /// Each pathspec can also be a negative match, i.e. `:!foo`. This matches changes outside
 /// the `foo` directory.
-/// See https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec
+/// See <https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec>
 /// for how git `pathspec` works.
 ///
 /// The function behaves differently in CI and outside CI.
diff --git a/src/tools/compiletest/src/lib.rs b/src/tools/compiletest/src/lib.rs
index d4d35cf78b4..b3b9299ea07 100644
--- a/src/tools/compiletest/src/lib.rs
+++ b/src/tools/compiletest/src/lib.rs
@@ -745,7 +745,7 @@ fn modified_tests(config: &Config, dir: &Utf8Path) -> Result<Vec<Utf8PathBuf>, S
         &vec!["rs", "stderr", "fixed"],
     )?;
     // Add new test cases to the list, it will be convenient in daily development.
-    let untracked_files = get_git_untracked_files(Some(dir))?.unwrap_or(vec![]);
+    let untracked_files = get_git_untracked_files(Some(dir.as_std_path()))?.unwrap_or(vec![]);
 
     let all_paths = [&files[..], &untracked_files[..]].concat();
     let full_paths = {