Skip to content

Commit d295196

Browse files
committed
servo: Merge #18420 - Get rustc commit hash from channel manifest (from servo:toml); r=nox,emilio
… added in rust-lang/rust#44218, instead of using the GitHub API. Also upgrade to rustc 1.22.0-nightly (d93036a04 2017-09-07). Source-Repo: https://github.com/servo/servo Source-Revision: af077a722225193b38d80622fb939b7719b46db0 UltraBlame original commit: b674d9f6d1d65fba6b68cb847619d1c7d84c0d4c
1 parent 7d8a89e commit d295196

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

servo/components/style/bloom.rs

+6
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ impl<E: TElement> StyleBloom<E> {
121121

122122

123123

124+
125+
126+
127+
128+
129+
#[inline(never)]
124130
pub fn new() -> Self {
125131
let bloom_arc = BLOOM_KEY.with(|b| b.clone());
126132
let filter = OwningHandle::new_with_fn(bloom_arc, |x| unsafe { x.as_ref() }.unwrap().borrow_mut());

servo/components/style/sharing/mod.rs

+6
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,12 @@ impl<E: TElement> StyleSharingCache<E> {
478478
}
479479

480480

481+
482+
483+
484+
485+
486+
#[inline(never)]
481487
pub fn new() -> Self {
482488
assert_eq!(mem::size_of::<SharingCache<E>>(), mem::size_of::<TypelessSharingCache>());
483489
assert_eq!(mem::align_of::<SharingCache<E>>(), mem::align_of::<TypelessSharingCache>());

servo/python/servo/bootstrap_commands.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,8 @@ def bootstrap_rustc(self, force=False, target=[], stable=False):
9090
base_url = static_s3
9191
else:
9292
import toml
93-
import re
9493
channel = "%s/%s/channel-rust-nightly.toml" % (static_s3, self.rust_nightly_date())
95-
version_string = toml.load(urllib2.urlopen(channel))["pkg"]["rustc"]["version"]
96-
short_commit = re.search("\(([0-9a-f]+) ", version_string).group(1)
97-
commit_api = "https://api.github.com/repos/rust-lang/rust/commits/" + short_commit
98-
nightly_commit_hash = json.load(urllib2.urlopen(commit_api))["sha"]
94+
nightly_commit_hash = toml.load(urllib2.urlopen(channel))["pkg"]["rustc"]["git_commit_hash"]
9995

10096
base_url = "https://s3.amazonaws.com/rust-lang-ci/rustc-builds"
10197
if not self.config["build"]["llvm-assertions"]:

servo/python/servo/devenv_commands.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def grep(self, params):
262262
description='Update the Rust version to latest Nightly',
263263
category='devenv')
264264
def rustup(self):
265-
url = "https://static.rust-lang.org/dist/channel-rust-nightly-date.txt"
265+
url = "https://static-rust-lang-org.s3.amazonaws.com/dist/channel-rust-nightly-date.txt"
266266
nightly_date = urllib2.urlopen(url).read()
267267
filename = path.join(self.context.topdir, "rust-toolchain")
268268
with open(filename, "w") as f:

servo/rust-toolchain

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2017-08-31
1+
nightly-2017-09-08

0 commit comments

Comments
 (0)