Skip to content

Commit

Permalink
auto merge of #20436 : alexcrichton/rust/rollup, r=alexcrichton
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Jan 2, 2015
2 parents 4b40bc8 + 340f3fd commit c894171
Show file tree
Hide file tree
Showing 488 changed files with 6,697 additions and 4,791 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -2,6 +2,7 @@
# RVM/bundler/ruby and whatnot. Right now 'rust' as a language actually
# downloads a rust/cargo snapshot, which we don't really want for building rust.
language: c
sudo: false

# The test suite is in general way too stressful for travis, especially in
# terms of time limit and reliability. In the past we've tried to scale things
Expand Down
4 changes: 3 additions & 1 deletion mk/dist.mk
Expand Up @@ -212,7 +212,7 @@ distcheck-osx: dist-osx
# Unix binary installer tarballs
######################################################################

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

define DEF_INSTALLER

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

dist/$$(PKG_NAME)-$(1).tar.gz: dist-install-dir-$(1)
@$(call E, build: $$@)
Expand Down
4 changes: 4 additions & 0 deletions mk/install.mk
Expand Up @@ -28,7 +28,11 @@ endif
# Remove tmp files because it's a decent amount of disk space
$(Q)rm -R tmp/dist

ifeq ($(CFG_DISABLE_DOCS),)
prepare_install: dist/$(PKG_NAME)-$(CFG_BUILD).tar.gz dist/$(DOC_PKG_NAME)-$(CFG_BUILD).tar.gz | tmp/empty_dir
else
prepare_install: dist/$(PKG_NAME)-$(CFG_BUILD).tar.gz | tmp/empty_dir
endif

uninstall:
ifeq (root user, $(USER) $(patsubst %,user,$(SUDO_USER)))
Expand Down
4 changes: 2 additions & 2 deletions src/compiletest/compiletest.rs
Expand Up @@ -22,8 +22,8 @@ extern crate regex;
use std::os;
use std::io;
use std::io::fs;
use std::str::FromStr;
use std::thunk::{Thunk};
use std::str::{FromStr, from_str};
use std::thunk::Thunk;
use getopts::{optopt, optflag, reqopt};
use common::Config;
use common::{Pretty, DebugInfoGdb, DebugInfoLldb, Codegen};
Expand Down
2 changes: 2 additions & 0 deletions src/doc/guide-ffi.md
Expand Up @@ -450,6 +450,8 @@ them.
~~~no_run
extern crate libc;
use std::c_str::ToCStr;
use std::ptr;
#[link(name = "readline")]
Expand Down
2 changes: 2 additions & 0 deletions src/doc/guide-tasks.md
Expand Up @@ -206,6 +206,7 @@ getting the result later.
The basic example below illustrates this.

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

```{rust,ignore}
# #![allow(deprecated)]
# use std::num::Float;
# use std::sync::Future;
fn partial_sum(start: uint) -> f64 {
Expand Down

0 comments on commit c894171

Please sign in to comment.