Switch to commit-specific nightlies

This commit is contained in:
Anthony Ramine 2017-02-15 11:08:00 +01:00 committed by Simon Sapin
parent 216a89f776
commit 336e6c8f28
9 changed files with 11 additions and 10 deletions

View file

@ -149,7 +149,7 @@ Servo's build system automatically downloads a Rust compiler to build itself.
This is normally a specific revision of Rust upstream, but sometimes has a This is normally a specific revision of Rust upstream, but sometimes has a
backported patch or two. backported patch or two.
If you'd like to know which nightly build of Rust we use, see If you'd like to know which nightly build of Rust we use, see
[`rust-nightly-date`](https://github.com/servo/servo/blob/master/rust-nightly-date). [`rust-commit-hash`](https://github.com/servo/servo/blob/master/rust-commit-hash).
## Building ## Building

View file

@ -37,8 +37,8 @@ branches:
- master - master
cache: cache:
- .servo -> rust-nightly-date, cargo-commit-hash - .servo -> rust-commit-hash, cargo-commit-hash
- .cargo -> rust-nightly-date, cargo-commit-hash - .cargo -> rust-commit-hash, cargo-commit-hash
- .ccache - .ccache
install: install:

View file

@ -86,9 +86,10 @@ class MachCommands(CommandBase):
# in that directory). # in that directory).
if stable: if stable:
tarball = "rustc-%s-%s.tar.gz" % (version, host_triple()) tarball = "rustc-%s-%s.tar.gz" % (version, host_triple())
rustc_url = "https://static-rust-lang-org.s3.amazonaws.com/dist/" + tarball
else: else:
tarball = "%s/rustc-nightly-%s.tar.gz" % (version, host_triple()) tarball = "%s/rustc-nightly-%s.tar.gz" % (version, host_triple())
rustc_url = "https://static-rust-lang-org.s3.amazonaws.com/dist/" + tarball rustc_url = "https://s3.amazonaws.com/rust-lang-ci/rustc-builds/" + tarball
tgz_file = rust_dir + '-rustc.tar.gz' tgz_file = rust_dir + '-rustc.tar.gz'
download_file("Rust compiler", rustc_url, tgz_file) download_file("Rust compiler", rustc_url, tgz_file)
@ -126,7 +127,7 @@ class MachCommands(CommandBase):
% (version, target_triple)) % (version, target_triple))
tgz_file = install_dir + ('rust-std-%s-%s.tar.gz' % (version, target_triple)) tgz_file = install_dir + ('rust-std-%s-%s.tar.gz' % (version, target_triple))
else: else:
std_url = ("https://static-rust-lang-org.s3.amazonaws.com/dist/%s/rust-std-nightly-%s.tar.gz" std_url = ("https://s3.amazonaws.com/rust-lang-ci/rustc-builds/%s/rust-std-nightly-%s.tar.gz"
% (version, target_triple)) % (version, target_triple))
tgz_file = install_dir + ('rust-std-nightly-%s.tar.gz' % target_triple) tgz_file = install_dir + ('rust-std-nightly-%s.tar.gz' % target_triple)

View file

@ -303,7 +303,7 @@ class CommandBase(object):
def rust_version(self): def rust_version(self):
if self._rust_version is None or self._use_stable_rust != self._rust_version_is_stable: if self._rust_version is None or self._use_stable_rust != self._rust_version_is_stable:
filename = path.join(self.context.topdir, filename = path.join(self.context.topdir,
"rust-stable-version" if self._use_stable_rust else "rust-nightly-date") "rust-stable-version" if self._use_stable_rust else "rust-commit-hash")
with open(filename) as f: with open(filename) as f:
self._rust_version = f.read().strip() self._rust_version = f.read().strip()
return self._rust_version return self._rust_version

1
rust-commit-hash Normal file
View file

@ -0,0 +1 @@
025c328bf5ab336ff708e62a59292298dc1bc089

View file

@ -1 +0,0 @@
2017-02-05

View file

@ -13,7 +13,7 @@ use script::test::Node;
struct Foo { struct Foo {
bar: DOMRefCell<JS<Node>> bar: DOMRefCell<JS<Node>>
//~^ ERROR Banned type DOMRefCell<JS<T>> detected. Use MutJS<JS<T>> instead, //~^ ERROR Banned type DOMRefCell<JS<T>> detected. Use MutJS<JS<T>> instead
} }
fn main() {} fn main() {}

View file

@ -12,7 +12,7 @@ use std::cell::Cell;
struct Foo { struct Foo {
bar: Cell<JSVal> bar: Cell<JSVal>
//~^ ERROR Banned type Cell<JSVal> detected. Use MutJS<JSVal> instead, //~^ ERROR Banned type Cell<JSVal> detected. Use MutJS<JSVal> instead
} }
fn main() {} fn main() {}

View file

@ -8,7 +8,7 @@
extern crate deny_public_fields; extern crate deny_public_fields;
#[derive(DenyPublicFields)] #[derive(DenyPublicFields)]
//~^ ERROR custom derive attribute panicked //~^ ERROR proc-macro derive panicked
struct Foo { struct Foo {
pub v1: i32, pub v1: i32,
v2: i32 v2: i32