Skip to content

Commit 38b7384

Browse files
authored
Merge pull request #2185 from DanielEScherzer/patch-3
Nightly test links: update rust branch name (use `main`)
2 parents 4499f5e + 759590b commit 38b7384

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/mdbook-spec/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,14 @@ impl Spec {
118118
/// Determines the git ref used for linking to a particular branch/tag in GitHub.
119119
fn git_ref(rust_root: &Option<PathBuf>) -> Result<String> {
120120
let Some(rust_root) = rust_root else {
121-
return Ok("master".into());
121+
return Ok("main".into());
122122
};
123123
let channel = std::fs::read_to_string(rust_root.join("src/ci/channel"))
124124
.context("failed to read src/ci/channel")?;
125125
let git_ref = match channel.trim() {
126126
// nightly/beta are branches, not stable references. Should be ok
127127
// because we're not expecting those channels to be long-lived.
128-
"nightly" => "master".into(),
128+
"nightly" => "main".into(),
129129
"beta" => "beta".into(),
130130
"stable" => {
131131
let version = std::fs::read_to_string(rust_root.join("src/version"))
@@ -155,7 +155,7 @@ impl Preprocessor for Spec {
155155
Ok(s) => s,
156156
Err(e) => {
157157
warn_or_err!(&mut diag, "{e:?}");
158-
"master".into()
158+
"main".into()
159159
}
160160
};
161161

0 commit comments

Comments
 (0)