Skip to content

Commit 8d4bf72

Browse files
committed
Auto merge of #1440 - tamird:rustup, r=alexcrichton
@alexcrichton
2 parents f841530 + 907bfe7 commit 8d4bf72

21 files changed

+81
-61
lines changed

Cargo.lock

Lines changed: 43 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ define DIST_TARGET
5757
ifdef CFG_ENABLE_OPTIMIZE
5858
TARGET_$(1) = $$(TARGET_ROOT)/$(1)/release
5959
else
60-
TARGET_$(1) = $$(TARGET_ROOT)/$(1)
60+
TARGET_$(1) = $$(TARGET_ROOT)/$(1)/debug
6161
endif
6262
DISTDIR_$(1) = $$(TARGET_$(1))/dist
6363
IMGDIR_$(1) = $$(DISTDIR_$(1))/$$(PKG_NAME)-$(1)-image

src/bin/cargo.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(core, io, std_misc, exit_status)]
1+
#![feature(core, exit_status, fs_ext)]
22

33
extern crate "git2-curl" as git2_curl;
44
extern crate "rustc-serialize" as rustc_serialize;
@@ -191,7 +191,7 @@ fn execute_subcommand(cmd: &str, args: &[String], shell: &mut MultiShell) {
191191
}
192192
}
193193
}
194-
Err(ref e) if e.kind() == io::ErrorKind::FileNotFound => {
194+
Err(ref e) if e.kind() == io::ErrorKind::NotFound => {
195195
handle_error(CliError::new("No such subcommand", 127), shell)
196196
}
197197
Err(err) => {

src/cargo/sources/git/utils.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use core::GitReference;
1010
use util::{CargoResult, ChainError, human, ToUrl, internal};
1111

1212
#[derive(PartialEq, Clone, Debug)]
13-
#[allow(missing_copy_implementations)]
1413
pub struct GitRevision(git2::Oid);
1514

1615
impl fmt::Display for GitRevision {

src/cargo/util/lev_distance.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub fn lev_distance(me: &str, t: &str) -> usize {
1414
if me.is_empty() { return t.chars().count(); }
1515
if t.is_empty() { return me.chars().count(); }
1616

17-
let mut dcol = range(0, t.len() + 1).collect::<Vec<_>>();
17+
let mut dcol = (0..t.len() + 1).collect::<Vec<_>>();
1818
let mut t_last = 0;
1919

2020
for (i, sc) in me.chars().enumerate() {
@@ -45,7 +45,7 @@ pub fn lev_distance(me: &str, t: &str) -> usize {
4545
fn test_lev_distance() {
4646
use std::char::{ from_u32, MAX };
4747
// Test bytelength agnosticity
48-
for c in range(0u32, MAX as u32)
48+
for c in (0u32..MAX as u32)
4949
.filter_map(|i| from_u32(i))
5050
.map(|i| i.to_string()) {
5151
assert_eq!(lev_distance(&c, &c), 0);

src/cargo/util/sha256.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![allow(bad_style)]
2-
31
pub use self::imp::Sha256;
42

53
// Someone upstream will link to OpenSSL, so we don't need to explicitly

src/cargo/util/toml.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ pub struct TomlProfiles {
228228
}
229229

230230
#[derive(RustcDecodable, Clone, Default)]
231-
#[allow(missing_copy_implementations)]
232231
pub struct TomlProfile {
233232
opt_level: Option<u32>,
234233
lto: Option<bool>,

src/rustversion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2015-03-14
1+
2015-03-22

src/snapshots.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2015-03-17
2+
linux-i386 96a64fa9b4b6cc0cddaa90ecde4e08254c9025d5
3+
linux-x86_64 354bb5b11b1f19e270ebc0553db1ddc560999bdb
4+
macos-i386 d1b69ef765bc450a3758b8abdb0909df7893058b
5+
macos-x86_64 a2328a82e073c230cd88dcfac96bdc784a999200
6+
winnt-i386 fb6e346d59bda47ed87e36800e8bfe210cf01297
7+
winnt-x86_64 4ef3d1ce315df8b27bd842fb66b8e2b03ce99a08
8+
19
2015-02-26
210
linux-i386 2a28b604d09b4a76a54a05d91f7f158692427b3a
311
linux-x86_64 7367f4aca86d38e209ef7236b00175df036c03e2

tests/support/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ pub fn cargo_dir() -> PathBuf {
251251
*/
252252

253253
#[derive(Clone)]
254-
struct Execs {
254+
pub struct Execs {
255255
expect_stdout: Option<String>,
256256
expect_stdin: Option<String>,
257257
expect_stderr: Option<String>,
@@ -436,7 +436,7 @@ pub fn execs() -> Execs {
436436
}
437437

438438
#[derive(Clone)]
439-
struct ShellWrites {
439+
pub struct ShellWrites {
440440
expected: String
441441
}
442442

0 commit comments

Comments
 (0)