File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,14 +118,14 @@ impl Spec {
118118/// Determines the git ref used for linking to a particular branch/tag in GitHub.
119119fn 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
You can’t perform that action at this time.
0 commit comments