Skip to content

Commit 8a6c68d

Browse files
committed
---
yaml --- r: 66474 b: refs/heads/master c: b4bb364 h: refs/heads/master v: v3
1 parent fee584c commit 8a6c68d

File tree

6 files changed

+20
-24
lines changed

6 files changed

+20
-24
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 9c3ef892f90289b6af77cbfe6c50dfb56eeb4c17
2+
refs/heads/master: b4bb36490d10a9d2613448215f2436f258e7fd28
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9

trunk/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ fi
402402
step_msg "looking for build programs"
403403

404404
probe_need CFG_PERL perl
405-
probe_need CFG_CURLORWGET curl wget
405+
probe_need CFG_CURL curl
406406
probe_need CFG_PYTHON python2.7 python2.6 python2 python
407407

408408
python_version=$($CFG_PYTHON -V 2>&1)

trunk/src/etc/snapshot.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# xfail-license
22

3-
import re, os, sys, glob, tarfile, shutil, subprocess, tempfile, distutils.spawn
3+
import re, os, sys, glob, tarfile, shutil, subprocess, tempfile
44

55
try:
66
import hashlib
@@ -132,13 +132,7 @@ def local_rev_committer_date():
132132
def get_url_to_file(u,f):
133133
# no security issue, just to stop partial download leaving a stale file
134134
tmpf = f + '.tmp'
135-
136-
returncode = -1
137-
if distutils.spawn.find_executable("curl"):
138-
returncode = subprocess.call(["curl", "-o", tmpf, u])
139-
elif distutils.spawn.find_executable("wget"):
140-
returncode = subprocess.call(["wget", "-O", tmpf, u])
141-
135+
returncode = subprocess.call(["curl", "-o", tmpf, u])
142136
if returncode != 0:
143137
os.unlink(tmpf)
144138
raise

trunk/src/librust/rust.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,12 @@ fn usage() {
238238

239239
pub fn main() {
240240
let os_args = os::args();
241+
242+
if (os_args.len() > 1 && (os_args[1] == ~"-v" || os_args[1] == ~"--version")) {
243+
rustc::version(os_args[0]);
244+
unsafe { exit(0); }
245+
}
246+
241247
let args = os_args.tail();
242248

243249
if !args.is_empty() {

trunk/src/libstd/iterator.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,20 +356,20 @@ pub trait IteratorUtil<A> {
356356
///
357357
/// # Example
358358
///
359-
/// --- {.rust}
359+
/// ~~~ {.rust}
360360
/// let xs = [-3, 0, 1, 5, -10];
361361
/// assert_eq!(*xs.iter().max_by(|x| x.abs()).unwrap(), -10);
362-
/// ---
362+
/// ~~~
363363
fn max_by<B: Ord>(&mut self, f: &fn(&A) -> B) -> Option<A>;
364364

365365
/// Return the element that gives the minimum value from the specfied function
366366
///
367367
/// # Example
368368
///
369-
/// --- {.rust}
369+
/// ~~~ {.rust}
370370
/// let xs = [-3, 0, 1, 5, -10];
371371
/// assert_eq!(*xs.iter().min_by(|x| x.abs()).unwrap(), 0);
372-
/// ---
372+
/// ~~~
373373
fn min_by<B: Ord>(&mut self, f: &fn(&A) -> B) -> Option<A>;
374374
}
375375

trunk/src/libstd/vec.rs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ use iter::FromIter;
2323
use kinds::Copy;
2424
use libc;
2525
use num::Zero;
26+
use ops::Add;
2627
use option::{None, Option, Some};
2728
use ptr::to_unsafe_ptr;
2829
use ptr;
@@ -40,6 +41,7 @@ use util;
4041

4142
#[cfg(not(test))] use cmp::Equiv;
4243

44+
#[doc(hidden)]
4345
pub mod rustrt {
4446
use libc;
4547
use vec::raw;
@@ -1180,16 +1182,10 @@ impl<T:Ord> Ord for @[T] {
11801182
}
11811183

11821184
#[cfg(not(test))]
1183-
pub mod traits {
1184-
use kinds::Copy;
1185-
use ops::Add;
1186-
use vec::append;
1187-
1188-
impl<'self,T:Copy> Add<&'self [T],~[T]> for ~[T] {
1189-
#[inline]
1190-
fn add(&self, rhs: & &'self [T]) -> ~[T] {
1191-
append(copy *self, (*rhs))
1192-
}
1185+
impl<'self,T:Copy> Add<&'self [T], ~[T]> for ~[T] {
1186+
#[inline]
1187+
fn add(&self, rhs: & &'self [T]) -> ~[T] {
1188+
append(copy *self, (*rhs))
11931189
}
11941190
}
11951191

0 commit comments

Comments
 (0)