Skip to content

Commit 7ed1f93

Browse files
authored
Rollup merge of rust-lang#148395 - Kobzol:generalize-branch-references, r=marcoieni
Generalize branch references It should be safe to merge this before the rename, and I'd like to do that, so we can test if beta/stable PRs work. r? ``@marcoieni``
2 parents 49692e1 + ae830ef commit 7ed1f93

File tree

94 files changed

+233
-232
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+233
-232
lines changed

.github/ISSUE_TEMPLATE/tracking_issue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ for larger features an implementation could be broken up into multiple PRs.
5050
[stabilization-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#stabilization-pr
5151
[doc-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#documentation-prs
5252
[nightly-style-procedure]: https://github.com/rust-lang/style-team/blob/main/nightly-style-procedure.md
53-
[Style Guide]: https://github.com/rust-lang/rust/tree/master/src/doc/style-guide
53+
[Style Guide]: https://github.com/rust-lang/rust/tree/HEAD/src/doc/style-guide
5454

5555
### Unresolved Questions
5656
<!--

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ jobs:
323323
# If a some dependent job has failed, this exits with 1.
324324
- name: calculate the correct exit status
325325
run: jq --exit-status 'all(.result == "success" or .result == "skipped")' <<< '${{ toJson(needs) }}'
326-
# Publish the toolstate if an auto build succeeds (just before push to master)
326+
# Publish the toolstate if an auto build succeeds (just before push to the default branch)
327327
- name: publish toolstate
328328
run: src/ci/publish_toolstate.sh
329329
shell: bash

.github/workflows/post-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Workflow that runs after a merge to master, analyses changes in test executions
1+
# Workflow that runs after a merge to the default branch, analyses changes in test executions
22
# and posts the result to the merged PR.
33

44
name: Post merge analysis

compiler/rustc_codegen_llvm/src/llvm_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ impl<'a> IntoIterator for LLVMFeature<'a> {
213213
///
214214
/// Check the current rustc fork of LLVM in the repo at
215215
/// <https://github.com/rust-lang/llvm-project/>. The commit in use can be found via the
216-
/// `llvm-project` submodule in <https://github.com/rust-lang/rust/tree/master/src> Though note that
216+
/// `llvm-project` submodule in <https://github.com/rust-lang/rust/tree/HEAD/src> Though note that
217217
/// Rust can also be build with an external precompiled version of LLVM which might lead to failures
218218
/// if the oldest tested / supported LLVM version doesn't yet support the relevant intrinsics.
219219
pub(crate) fn to_llvm_features<'a>(sess: &Session, s: &'a str) -> Option<LLVMFeature<'a>> {

compiler/rustc_middle/src/query/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
//! Only valid for queries returning `Result<_, ErrorGuaranteed>`.
4343
//!
4444
//! For the up-to-date list, see the `QueryModifiers` struct in
45-
//! [`rustc_macros/src/query.rs`](https://github.com/rust-lang/rust/blob/master/compiler/rustc_macros/src/query.rs)
45+
//! [`rustc_macros/src/query.rs`](https://github.com/rust-lang/rust/blob/HEAD/compiler/rustc_macros/src/query.rs)
4646
//! and for more details in incremental compilation, see the
4747
//! [Query modifiers in incremental compilation](https://rustc-dev-guide.rust-lang.org/queries/incremental-compilation-in-detail.html#query-modifiers) section of the rustc-dev-guide.
4848
//!

library/core/src/intrinsics/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
//! intrinsics via stable wrapper functions. Use these instead.
66
//!
77
//! These are the imports making intrinsics available to Rust code. The actual implementations live in the compiler.
8-
//! Some of these intrinsics are lowered to MIR in <https://github.com/rust-lang/rust/blob/master/compiler/rustc_mir_transform/src/lower_intrinsics.rs>.
9-
//! The remaining intrinsics are implemented for the LLVM backend in <https://github.com/rust-lang/rust/blob/master/compiler/rustc_codegen_ssa/src/mir/intrinsic.rs>
10-
//! and <https://github.com/rust-lang/rust/blob/master/compiler/rustc_codegen_llvm/src/intrinsic.rs>,
11-
//! and for const evaluation in <https://github.com/rust-lang/rust/blob/master/compiler/rustc_const_eval/src/interpret/intrinsics.rs>.
8+
//! Some of these intrinsics are lowered to MIR in <https://github.com/rust-lang/rust/blob/HEAD/compiler/rustc_mir_transform/src/lower_intrinsics.rs>.
9+
//! The remaining intrinsics are implemented for the LLVM backend in <https://github.com/rust-lang/rust/blob/HEAD/compiler/rustc_codegen_ssa/src/mir/intrinsic.rs>
10+
//! and <https://github.com/rust-lang/rust/blob/HEAD/compiler/rustc_codegen_llvm/src/intrinsic.rs>,
11+
//! and for const evaluation in <https://github.com/rust-lang/rust/blob/HEAD/compiler/rustc_const_eval/src/interpret/intrinsics.rs>.
1212
//!
1313
//! # Const intrinsics
1414
//!
1515
//! In order to make an intrinsic unstable usable at compile-time, copy the implementation from
1616
//! <https://github.com/rust-lang/miri/blob/master/src/intrinsics> to
17-
//! <https://github.com/rust-lang/rust/blob/master/compiler/rustc_const_eval/src/interpret/intrinsics.rs>
17+
//! <https://github.com/rust-lang/rust/blob/HEAD/compiler/rustc_const_eval/src/interpret/intrinsics.rs>
1818
//! and make the intrinsic declaration below a `const fn`. This should be done in coordination with
1919
//! wg-const-eval.
2020
//!

src/bootstrap/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1611,7 +1611,7 @@ impl Build {
16111611
// If available, we read the beta revision from that file.
16121612
// This only happens when building from a source tarball when Git should not be used.
16131613
let count = extract_beta_rev_from_file(self.src.join("version")).unwrap_or_else(|| {
1614-
// Figure out how many merge commits happened since we branched off master.
1614+
// Figure out how many merge commits happened since we branched off main.
16151615
// That's our beta number!
16161616
// (Note that we use a `..` range, not the `...` symmetric difference.)
16171617
helpers::git(Some(&self.src))

src/ci/github-actions/jobs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ optional:
162162
IMAGE: pr-check-1
163163
<<: *job-linux-4c
164164

165-
# Main CI jobs that have to be green to merge a commit into master.
165+
# Main CI jobs that have to be green to merge a commit into the default branch.
166166
#
167167
# These jobs automatically inherit envs.auto, to avoid repeating it in each job
168168
# definition.

src/ci/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ fi
106106

107107
# Always set the release channel for bootstrap; this is normally not important (i.e., only dist
108108
# builds would seem to matter) but in practice bootstrap wants to know whether we're targeting
109-
# master, beta, or stable with a build to determine whether to run some checks (notably toolstate).
109+
# main, beta, or stable with a build to determine whether to run some checks (notably toolstate).
110110
export RUST_RELEASE_CHANNEL=$(releaseChannel)
111111
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --release-channel=$RUST_RELEASE_CHANNEL"
112112

src/ci/scripts/checkout-submodules.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ci_dir=$(cd $(dirname $0) && pwd)/..
1717
# On the beta channel we'll be automatically calculating the prerelease version
1818
# via the git history, so unshallow our shallow clone from CI.
1919
if [ "$(releaseChannel)" = "beta" ]; then
20-
git fetch origin --unshallow beta master
20+
git fetch origin --unshallow beta HEAD
2121
fi
2222

2323
function fetch_github_commit_archive {

0 commit comments

Comments
 (0)