diff options
| author | Pietro Albini <pietro.albini@ferrous-systems.com> | 2023-11-06 15:53:32 +0100 |
|---|---|---|
| committer | Pietro Albini <pietro.albini@ferrous-systems.com> | 2023-11-06 15:53:32 +0100 |
| commit | 580fa0c1a9d4d5f90988c55bde7c77cdce52c3b1 (patch) | |
| tree | 290df7b1eced31bbf9fa235beafb213d37a8ee41 /src/tools/compiletest | |
| parent | 4a0873533ff94855882802c4d6f0349d66e8c04a (diff) | |
rename github_repository to git_repository
Diffstat (limited to 'src/tools/compiletest')
| -rw-r--r-- | src/tools/compiletest/src/common.rs | 4 | ||||
| -rw-r--r-- | src/tools/compiletest/src/header/tests.rs | 2 | ||||
| -rw-r--r-- | src/tools/compiletest/src/lib.rs | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/tools/compiletest/src/common.rs b/src/tools/compiletest/src/common.rs index cd9cf748aff..f42fa588b6e 100644 --- a/src/tools/compiletest/src/common.rs +++ b/src/tools/compiletest/src/common.rs @@ -373,7 +373,7 @@ pub struct Config { pub nocapture: bool, // Needed both to construct build_helper::git::GitConfig - pub github_repository: String, + pub git_repository: String, pub nightly_branch: String, } @@ -449,7 +449,7 @@ impl Config { pub fn git_config(&self) -> GitConfig<'_> { GitConfig { - github_repository: &self.github_repository, + git_repository: &self.git_repository, nightly_branch: &self.nightly_branch, } } diff --git a/src/tools/compiletest/src/header/tests.rs b/src/tools/compiletest/src/header/tests.rs index 1c89f8ba763..85e745bed11 100644 --- a/src/tools/compiletest/src/header/tests.rs +++ b/src/tools/compiletest/src/header/tests.rs @@ -126,7 +126,7 @@ impl ConfigBuilder { self.host.as_deref().unwrap_or("x86_64-unknown-linux-gnu"), "--target", self.target.as_deref().unwrap_or("x86_64-unknown-linux-gnu"), - "--github-repository=", + "--git-repository=", "--nightly-branch=", ]; let mut args: Vec<String> = args.iter().map(ToString::to_string).collect(); diff --git a/src/tools/compiletest/src/lib.rs b/src/tools/compiletest/src/lib.rs index 52e7f4174f1..bb09c03ef5b 100644 --- a/src/tools/compiletest/src/lib.rs +++ b/src/tools/compiletest/src/lib.rs @@ -145,7 +145,7 @@ pub fn parse_config(args: Vec<String>) -> Config { .reqopt("", "channel", "current Rust channel", "CHANNEL") .optflag("", "git-hash", "run tests which rely on commit version being compiled into the binaries") .optopt("", "edition", "default Rust edition", "EDITION") - .reqopt("", "github-repository", "name of the GitHub repository", "ORG/REPO") + .reqopt("", "git-repository", "name of the git repository", "ORG/REPO") .reqopt("", "nightly-branch", "name of the git branch for nightly", "BRANCH"); let (argv0, args_) = args.split_first().unwrap(); @@ -310,7 +310,7 @@ pub fn parse_config(args: Vec<String>) -> Config { nocapture: matches.opt_present("nocapture"), - github_repository: matches.opt_str("github-repository").unwrap(), + git_repository: matches.opt_str("git-repository").unwrap(), nightly_branch: matches.opt_str("nightly-branch").unwrap(), } } |
