Skip to content

Commit e9fc4ba

Browse files
committed
Rollup merge of #56285 - Keruspe:stage0, r=alexcrichton
move stage0.txt to toplevel directory This way all files needed by packagers now reside in toplevel
2 parents 19b10fc + c4e0b89 commit e9fc4ba

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

config.toml.example

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@
112112
# for each target triple.
113113
#target = ["x86_64-unknown-linux-gnu"] # defaults to just the build triple
114114

115-
# Instead of downloading the src/stage0.txt version of Cargo specified, use
115+
# Instead of downloading the stage0.txt version of Cargo specified, use
116116
# this Cargo binary instead to build all Rust code
117117
#cargo = "/path/to/bin/cargo"
118118

119-
# Instead of downloading the src/stage0.txt version of the compiler
119+
# Instead of downloading the stage0.txt version of the compiler
120120
# specified, use this rustc binary instead as the stage0 snapshot compiler.
121121
#rustc = "/path/to/bin/rustc"
122122

src/bootstrap/bootstrap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def run(args, verbose=False, exception=False, **kwargs):
154154

155155
def stage0_data(rust_root):
156156
"""Build a dictionary from stage0.txt"""
157-
nightlies = os.path.join(rust_root, "src/stage0.txt")
157+
nightlies = os.path.join(rust_root, "stage0.txt")
158158
with open(nightlies, 'r') as nightlies:
159159
lines = [line.rstrip() for line in nightlies
160160
if not line.startswith("#")]

src/bootstrap/bootstrap_test.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ class Stage0DataTestCase(unittest.TestCase):
2828
def setUp(self):
2929
self.rust_root = tempfile.mkdtemp()
3030
os.mkdir(os.path.join(self.rust_root, "src"))
31-
with open(os.path.join(self.rust_root, "src",
32-
"stage0.txt"), "w") as stage0:
31+
with open(os.path.join(self.rust_root, "stage0.txt"), "w") as stage0:
3332
stage0.write("#ignore\n\ndate: 2017-06-15\nrustc: beta\ncargo: beta")
3433

3534
def tearDown(self):

src/bootstrap/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
//! When you execute `x.py build`, the steps which are executed are:
4242
//!
4343
//! * First, the python script is run. This will automatically download the
44-
//! stage0 rustc and cargo according to `src/stage0.txt`, or use the cached
44+
//! stage0 rustc and cargo according to `stage0.txt`, or use the cached
4545
//! versions if they're available. These are then used to compile rustbuild
4646
//! itself (using Cargo). Finally, control is then transferred to rustbuild.
4747
//!

src/bootstrap/sanity.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ $ pacman -R cmake && pacman -S mingw-w64-x86_64-cmake
236236

237237
if build.config.channel == "stable" {
238238
let mut stage0 = String::new();
239-
t!(t!(File::open(build.src.join("src/stage0.txt")))
239+
t!(t!(File::open(build.src.join("stage0.txt")))
240240
.read_to_string(&mut stage0));
241241
if stage0.contains("\ndev:") {
242242
panic!("bootstrapping from a dev compiler in a stable release, but \
File renamed without changes.

0 commit comments

Comments
 (0)