We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f25f0e8 commit 613f449Copy full SHA for 613f449
src/bootstrap/bootstrap.py
@@ -73,7 +73,8 @@ def download_rust_nightly(self):
73
74
if self.rustc().startswith(self.bin_root()) and \
75
(not os.path.exists(self.rustc()) or self.rustc_out_of_date()):
76
- shutil.rmtree(self.bin_root())
+ if os.path.exists(self.bin_root()):
77
+ shutil.rmtree(self.bin_root())
78
filename = "rust-std-nightly-" + self.build + ".tar.gz"
79
url = "https://static.rust-lang.org/dist/" + self.snap_rustc_date()
80
tarball = os.path.join(rustc_cache, filename)
0 commit comments