Skip to content

Commit 52da1a4

Browse files
committed
---
yaml --- r: 235409 b: refs/heads/stable c: 7131e6f h: refs/heads/master i: 235407: 65b65e7 v: v3
1 parent 9a8528c commit 52da1a4

File tree

18 files changed

+68
-191
lines changed

18 files changed

+68
-191
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 2533a85be4584a47818d4f381f29bbd6294e0fb0
32+
refs/heads/stable: 7131e6f378af212b86e6bc0ddbc632c3f2e5d255
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/AUTHORS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ Santiago Rodriguez <[email protected]>
958958
Saurabh Anand <[email protected]>
959959
Scott Jenkins <[email protected]>
960960
Scott Lawrence <[email protected]>
961-
Scott Olson <scott@solson.me>
961+
Scott Olson <scott@scott-olson.org>
962962
Sean Bowe <[email protected]>
963963
Sean Chalmers <[email protected]>
964964
Sean Collins <[email protected]>

branches/stable/configure

Lines changed: 38 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -988,29 +988,44 @@ if [ ! -z "$CFG_ENABLE_CLANG" ]
988988
then
989989
case "$CC" in
990990
(''|*clang)
991-
CFG_CLANG_VERSION=$($CFG_CC \
992-
--version \
993-
| grep version \
994-
| sed 's/.*\(version .*\)/\1/; s/.*based on \(LLVM .*\))/\1/' \
995-
| cut -d ' ' -f 2)
996-
997-
case $CFG_CLANG_VERSION in
998-
(3.2* | 3.3* | 3.4* | 3.5* | 3.6* | 3.7*)
999-
step_msg "found ok version of CLANG: $CFG_CLANG_VERSION"
1000-
if [ -z "$CC" ]
1001-
then
1002-
CFG_CC="clang"
1003-
CFG_CXX="clang++"
1004-
fi
1005-
;;
1006-
(*)
1007-
err "bad CLANG version: $CFG_CLANG_VERSION, need >=3.0svn"
1008-
;;
1009-
esac
1010-
;;
1011-
(*)
1012-
msg "skipping CFG_ENABLE_CLANG version check; provided CC=$CC"
1013-
;;
991+
CFG_CLANG_REPORTED_VERSION=$($CFG_CC --version | grep version)
992+
993+
if [[ $CFG_CLANG_REPORTED_VERSION == *"(based on LLVM "* ]]
994+
then
995+
CFG_CLANG_VERSION=$(echo $CFG_CLANG_REPORTED_VERSION | sed 's/.*(based on LLVM \(.*\))/\1/')
996+
elif [[ $CFG_CLANG_REPORTED_VERSION == "Apple LLVM"* ]]
997+
then
998+
CFG_OSX_CLANG_VERSION=$(echo $CFG_CLANG_REPORTED_VERSION | sed 's/.*version \(.*\) .*/\1/')
999+
else
1000+
CFG_CLANG_VERSION=$(echo $CFG_CLANG_REPORTED_VERSION | sed 's/.*version \(.*\) .*/\1/')
1001+
fi
1002+
1003+
if [ ! -z "$CFG_OSX_CLANG_VERSION" ]
1004+
then
1005+
case $CFG_OSX_CLANG_VERSION in
1006+
(7.0*)
1007+
step_msg "found ok version of APPLE CLANG: $CFG_OSX_CLANG_VERSION"
1008+
;;
1009+
(*)
1010+
err "bad APPLE CLANG version: $CFG_OSX_CLANG_VERSION, need >=7.0"
1011+
;;
1012+
esac
1013+
else
1014+
case $CFG_CLANG_VERSION in
1015+
(3.2* | 3.3* | 3.4* | 3.5* | 3.6* | 3.7*)
1016+
step_msg "found ok version of CLANG: $CFG_CLANG_VERSION"
1017+
;;
1018+
(*)
1019+
err "bad CLANG version: $CFG_CLANG_VERSION, need >=3.0svn"
1020+
;;
1021+
esac
1022+
fi
1023+
1024+
if [ -z "$CC" ]
1025+
then
1026+
CFG_CC="clang"
1027+
CFG_CXX="clang++"
1028+
fi
10141029
esac
10151030
fi
10161031

branches/stable/src/doc/trpl/dining-philosophers.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,15 @@ look at `main()` again:
151151
# struct Philosopher {
152152
# name: String,
153153
# }
154-
#
154+
#
155155
# impl Philosopher {
156156
# fn new(name: &str) -> Philosopher {
157157
# Philosopher {
158158
# name: name.to_string(),
159159
# }
160160
# }
161161
# }
162-
#
162+
#
163163
fn main() {
164164
let p1 = Philosopher::new("Judith Butler");
165165
let p2 = Philosopher::new("Gilles Deleuze");
@@ -197,15 +197,15 @@ a method, and then loop through all the philosophers, calling it:
197197
```rust
198198
struct Philosopher {
199199
name: String,
200-
}
200+
}
201201

202-
impl Philosopher {
202+
impl Philosopher {
203203
fn new(name: &str) -> Philosopher {
204204
Philosopher {
205205
name: name.to_string(),
206206
}
207207
}
208-
208+
209209
fn eat(&self) {
210210
println!("{} is done eating.", self.name);
211211
}
@@ -267,15 +267,15 @@ use std::thread;
267267

268268
struct Philosopher {
269269
name: String,
270-
}
270+
}
271271

272-
impl Philosopher {
272+
impl Philosopher {
273273
fn new(name: &str) -> Philosopher {
274274
Philosopher {
275275
name: name.to_string(),
276276
}
277277
}
278-
278+
279279
fn eat(&self) {
280280
println!("{} is eating.", self.name);
281281

@@ -348,9 +348,9 @@ use std::thread;
348348

349349
struct Philosopher {
350350
name: String,
351-
}
351+
}
352352

353-
impl Philosopher {
353+
impl Philosopher {
354354
fn new(name: &str) -> Philosopher {
355355
Philosopher {
356356
name: name.to_string(),
@@ -401,7 +401,7 @@ let handles: Vec<_> = philosophers.into_iter().map(|p| {
401401
While this is only five lines, they’re a dense five. Let’s break it down.
402402

403403
```rust,ignore
404-
let handles: Vec<_> =
404+
let handles: Vec<_> =
405405
```
406406

407407
We introduce a new binding, called `handles`. We’ve given it this name because
@@ -460,15 +460,15 @@ If you run this program, you’ll see that the philosophers eat out of order!
460460
We have multi-threading!
461461

462462
```text
463-
Judith Butler is eating.
464463
Gilles Deleuze is eating.
465-
Karl Marx is eating.
464+
Gilles Deleuze is done eating.
466465
Emma Goldman is eating.
466+
Emma Goldman is done eating.
467467
Michel Foucault is eating.
468+
Judith Butler is eating.
468469
Judith Butler is done eating.
469-
Gilles Deleuze is done eating.
470+
Karl Marx is eating.
470471
Karl Marx is done eating.
471-
Emma Goldman is done eating.
472472
Michel Foucault is done eating.
473473
```
474474

branches/stable/src/etc/errorck.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,6 @@
2323
errcode_map = {}
2424
error_re = re.compile("(E\d\d\d\d)")
2525

26-
# In the register_long_diagnostics! macro, entries look like this:
27-
#
28-
# EXXXX: r##"
29-
# <Long diagnostic message>
30-
# "##,
31-
#
32-
# These two variables are for detecting the beginning and end of diagnostic
33-
# messages so that duplicate error codes are not reported when a code occurs
34-
# inside a diagnostic message
35-
long_diag_begin = "r##\""
36-
long_diag_end = "\"##"
37-
3826
for (dirpath, dirnames, filenames) in os.walk(src_dir):
3927
if "src/test" in dirpath or "src/llvm" in dirpath:
4028
# Short circuit for fast
@@ -47,14 +35,7 @@
4735
path = os.path.join(dirpath, filename)
4836

4937
with open(path, 'r') as f:
50-
inside_long_diag = False
5138
for line_num, line in enumerate(f, start=1):
52-
if inside_long_diag:
53-
# Skip duplicate error code checking for this line
54-
if long_diag_end in line:
55-
inside_long_diag = False
56-
continue
57-
5839
match = error_re.search(line)
5940
if match:
6041
errcode = match.group(1)
@@ -66,9 +47,6 @@
6647
else:
6748
errcode_map[errcode] = new_record
6849

69-
if long_diag_begin in line:
70-
inside_long_diag = True
71-
7250
errors = False
7351
all_errors = []
7452

branches/stable/src/liballoc/boxed.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ use core::raw::{TraitObject};
7171
/// The following two examples are equivalent:
7272
///
7373
/// ```
74-
/// # #![feature(box_heap)]
74+
/// #![feature(box_heap)]
7575
/// #![feature(box_syntax)]
7676
/// use std::boxed::HEAP;
7777
///
@@ -162,7 +162,7 @@ impl<T : ?Sized> Box<T> {
162162
///
163163
/// # Examples
164164
/// ```
165-
/// # #![feature(box_raw)]
165+
/// #![feature(box_raw)]
166166
/// use std::boxed;
167167
///
168168
/// let seventeen = Box::new(17u32);

branches/stable/src/libcore/num/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -459,15 +459,15 @@ macro_rules! int_impl {
459459
}
460460
}
461461

462-
/// Wrapping (modular) division. Computes `self / other`,
462+
/// Wrapping (modular) division. Computes `floor(self / other)`,
463463
/// wrapping around at the boundary of the type.
464464
///
465465
/// The only case where such wrapping can occur is when one
466466
/// divides `MIN / -1` on a signed type (where `MIN` is the
467467
/// negative minimal value for the type); this is equivalent
468468
/// to `-MIN`, a positive value that is too large to represent
469469
/// in the type. In such a case, this function returns `MIN`
470-
/// itself.
470+
/// itself..
471471
#[stable(feature = "num_wrapping", since = "1.2.0")]
472472
#[inline(always)]
473473
pub fn wrapping_div(self, rhs: Self) -> Self {
@@ -1031,15 +1031,15 @@ macro_rules! uint_impl {
10311031
}
10321032
}
10331033

1034-
/// Wrapping (modular) division. Computes `self / other`,
1034+
/// Wrapping (modular) division. Computes `floor(self / other)`,
10351035
/// wrapping around at the boundary of the type.
10361036
///
10371037
/// The only case where such wrapping can occur is when one
10381038
/// divides `MIN / -1` on a signed type (where `MIN` is the
10391039
/// negative minimal value for the type); this is equivalent
10401040
/// to `-MIN`, a positive value that is too large to represent
10411041
/// in the type. In such a case, this function returns `MIN`
1042-
/// itself.
1042+
/// itself..
10431043
#[stable(feature = "num_wrapping", since = "1.2.0")]
10441044
#[inline(always)]
10451045
pub fn wrapping_div(self, rhs: Self) -> Self {

branches/stable/src/libcore/ops.rs

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -351,10 +351,8 @@ pub trait Div<RHS=Self> {
351351
fn div(self, rhs: RHS) -> Self::Output;
352352
}
353353

354-
macro_rules! div_impl_integer {
354+
macro_rules! div_impl {
355355
($($t:ty)*) => ($(
356-
/// This operation rounds towards zero, truncating any
357-
/// fractional part of the exact result.
358356
#[stable(feature = "rust1", since = "1.0.0")]
359357
impl Div for $t {
360358
type Output = $t;
@@ -367,23 +365,7 @@ macro_rules! div_impl_integer {
367365
)*)
368366
}
369367

370-
div_impl_integer! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 }
371-
372-
macro_rules! div_impl_float {
373-
($($t:ty)*) => ($(
374-
#[stable(feature = "rust1", since = "1.0.0")]
375-
impl Div for $t {
376-
type Output = $t;
377-
378-
#[inline]
379-
fn div(self, other: $t) -> $t { self / other }
380-
}
381-
382-
forward_ref_binop! { impl Div, div for $t, $t }
383-
)*)
384-
}
385-
386-
div_impl_float! { f32 f64 }
368+
div_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
387369

388370
/// The `Rem` trait is used to specify the functionality of `%`.
389371
///
@@ -425,8 +407,6 @@ pub trait Rem<RHS=Self> {
425407

426408
macro_rules! rem_impl {
427409
($($t:ty)*) => ($(
428-
/// This operation satisfies `n % d == n - (n / d) * d`. The
429-
/// result has the same sign as the left operand.
430410
#[stable(feature = "rust1", since = "1.0.0")]
431411
impl Rem for $t {
432412
type Output = $t;

branches/stable/src/librustc/middle/fast_reject.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,8 @@ pub fn simplify_type(tcx: &ty::ctxt,
7171
}
7272
ty::TyBox(_) => {
7373
// treat like we would treat `Box`
74-
match tcx.lang_items.require_owned_box() {
75-
Ok(def_id) => Some(StructSimplifiedType(def_id)),
76-
Err(msg) => tcx.sess.fatal(&msg),
77-
}
74+
let def_id = tcx.lang_items.owned_box().unwrap();
75+
Some(StructSimplifiedType(def_id))
7876
}
7977
ty::TyClosure(def_id, _) => {
8078
Some(ClosureSimplifiedType(def_id))

branches/stable/src/librustc/middle/lang_items.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,6 @@ impl LanguageItems {
9090
}
9191
}
9292

93-
pub fn require_owned_box(&self) -> Result<ast::DefId, String> {
94-
self.require(OwnedBoxLangItem)
95-
}
96-
9793
pub fn from_builtin_kind(&self, bound: ty::BuiltinBound)
9894
-> Result<ast::DefId, String>
9995
{

branches/stable/src/librustc_trans/back/link.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -954,9 +954,6 @@ fn link_args(cmd: &mut Linker,
954954
// Pass optimization flags down to the linker.
955955
cmd.optimize();
956956

957-
// Pass debuginfo flags down to the linker.
958-
cmd.debuginfo();
959-
960957
// We want to prevent the compiler from accidentally leaking in any system
961958
// libraries, so we explicitly ask gcc to not link to any libraries by
962959
// default. Note that this does not happen for windows because windows pulls

0 commit comments

Comments
 (0)