Skip to content

Commit c894171

Browse files
committed
auto merge of #20436 : alexcrichton/rust/rollup, r=alexcrichton
2 parents 4b40bc8 + 340f3fd commit c894171

File tree

488 files changed

+6697
-4791
lines changed

Some content is hidden

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

488 files changed

+6697
-4791
lines changed

Diff for: .travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# RVM/bundler/ruby and whatnot. Right now 'rust' as a language actually
33
# downloads a rust/cargo snapshot, which we don't really want for building rust.
44
language: c
5+
sudo: false
56

67
# The test suite is in general way too stressful for travis, especially in
78
# terms of time limit and reliability. In the past we've tried to scale things

Diff for: mk/dist.mk

+3-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ distcheck-osx: dist-osx
212212
# Unix binary installer tarballs
213213
######################################################################
214214

215-
NON_INSTALLED_PREFIXES=COPYRIGHT,LICENSE-APACHE,LICENSE-MIT,README.md,doc
215+
NON_INSTALLED_PREFIXES=COPYRIGHT,LICENSE-APACHE,LICENSE-MIT,README.md,version
216216

217217
define DEF_INSTALLER
218218

@@ -236,6 +236,8 @@ dist-install-dir-$(1): prepare-base-dir-$(1) docs compiler-docs
236236
$$(Q)$$(PREPARE_MAN_CMD) $$(S)LICENSE-APACHE $$(PREPARE_DEST_DIR)/share/doc/rust
237237
$$(Q)$$(PREPARE_MAN_CMD) $$(S)LICENSE-MIT $$(PREPARE_DEST_DIR)/share/doc/rust
238238
$$(Q)$$(PREPARE_MAN_CMD) $$(S)README.md $$(PREPARE_DEST_DIR)/share/doc/rust
239+
# This tiny morsel of metadata is used by rust-packaging
240+
$$(Q)echo "$(CFG_VERSION)" > $$(PREPARE_DEST_DIR)/version
239241

240242
dist/$$(PKG_NAME)-$(1).tar.gz: dist-install-dir-$(1)
241243
@$(call E, build: $$@)

Diff for: mk/install.mk

+4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ endif
2828
# Remove tmp files because it's a decent amount of disk space
2929
$(Q)rm -R tmp/dist
3030

31+
ifeq ($(CFG_DISABLE_DOCS),)
32+
prepare_install: dist/$(PKG_NAME)-$(CFG_BUILD).tar.gz dist/$(DOC_PKG_NAME)-$(CFG_BUILD).tar.gz | tmp/empty_dir
33+
else
3134
prepare_install: dist/$(PKG_NAME)-$(CFG_BUILD).tar.gz | tmp/empty_dir
35+
endif
3236

3337
uninstall:
3438
ifeq (root user, $(USER) $(patsubst %,user,$(SUDO_USER)))

Diff for: src/compiletest/compiletest.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ extern crate regex;
2222
use std::os;
2323
use std::io;
2424
use std::io::fs;
25-
use std::str::FromStr;
26-
use std::thunk::{Thunk};
25+
use std::str::{FromStr, from_str};
26+
use std::thunk::Thunk;
2727
use getopts::{optopt, optflag, reqopt};
2828
use common::Config;
2929
use common::{Pretty, DebugInfoGdb, DebugInfoLldb, Codegen};

Diff for: src/doc/guide-ffi.md

+2
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,8 @@ them.
450450
451451
~~~no_run
452452
extern crate libc;
453+
454+
use std::c_str::ToCStr;
453455
use std::ptr;
454456
455457
#[link(name = "readline")]

Diff for: src/doc/guide-tasks.md

+2
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ getting the result later.
206206
The basic example below illustrates this.
207207

208208
```{rust,ignore}
209+
# #![allow(deprecated)]
209210
use std::sync::Future;
210211
211212
# fn main() {
@@ -233,6 +234,7 @@ Here is another example showing how futures allow you to background
233234
computations. The workload will be distributed on the available cores.
234235

235236
```{rust,ignore}
237+
# #![allow(deprecated)]
236238
# use std::num::Float;
237239
# use std::sync::Future;
238240
fn partial_sum(start: uint) -> f64 {

0 commit comments

Comments
 (0)