Skip to content

Commit f081189

Browse files
committed
---
yaml --- r: 189757 b: refs/heads/try c: f81f8d8 h: refs/heads/master i: 189755: a2e3a9c v: v3
1 parent 4cd04d3 commit f081189

39 files changed

+573
-1483
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: f899513a30165946a75ff7f515ab37a226e72172
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 270a677d4d698916f5ad103f0afc3c070b8dbeb4
5-
refs/heads/try: d71239f628f0338d042a7f2cd6f5909025cb0509
5+
refs/heads/try: f81f8d81d3d0f0bea7d6b6b0db3586457962435a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/configure

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -430,10 +430,6 @@ case $CFG_OSTYPE in
430430
CFG_CPUTYPE=x86_64
431431
;;
432432

433-
# Win 8 # uname -s on 64-bit cygwin does not contain WOW64, so simply use uname -m to detect arch (works in my install)
434-
CYGWIN_NT-6.3)
435-
CFG_OSTYPE=pc-windows-gnu
436-
;;
437433
# We do not detect other OS such as XP/2003 using 64 bit using uname.
438434
# If we want to in the future, we will need to use Cygwin - Chuck's csih helper in /usr/lib/csih/winProductName.exe or alternative.
439435
*)

branches/try/src/doc/reference.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2429,10 +2429,6 @@ The currently implemented features of the reference compiler are:
24292429
so that new attributes can be added in a bacwards compatible
24302430
manner (RFC 572).
24312431

2432-
* `custom_derive` - Allows the use of `#[derive(Foo,Bar)]` as sugar for
2433-
`#[derive_Foo] #[derive_Bar]`, which can be user-defined syntax
2434-
extensions.
2435-
24362432
* `intrinsics` - Allows use of the "rust-intrinsics" ABI. Compiler intrinsics
24372433
are inherently unstable and no promise about them is made.
24382434

branches/try/src/doc/trpl/plugins.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ that implements Roman numeral integer literals.
6363

6464
```ignore
6565
#![crate_type="dylib"]
66-
#![feature(plugin_registrar, rustc_private)]
66+
#![feature(plugin_registrar)]
6767
6868
extern crate syntax;
6969
extern crate rustc;
@@ -92,13 +92,13 @@ fn expand_rn(cx: &mut ExtCtxt, sp: Span, args: &[TokenTree])
9292
}
9393
};
9494
95-
let mut text = &*text;
95+
let mut text = &text;
9696
let mut total = 0;
9797
while !text.is_empty() {
9898
match NUMERALS.iter().find(|&&(rn, _)| text.starts_with(rn)) {
9999
Some(&(rn, val)) => {
100100
total += val;
101-
text = &text[rn.len()..];
101+
text = text.slice_from(rn.len());
102102
}
103103
None => {
104104
cx.span_err(sp, "invalid Roman numeral");
@@ -107,7 +107,7 @@ fn expand_rn(cx: &mut ExtCtxt, sp: Span, args: &[TokenTree])
107107
}
108108
}
109109
110-
MacEager::expr(cx.expr_u32(sp, total))
110+
MacEager::expr(cx.expr_usize(sp, total))
111111
}
112112
113113
#[plugin_registrar]

branches/try/src/libcore/intrinsics.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -545,11 +545,7 @@ extern "rust-intrinsic" {
545545
pub fn u32_mul_with_overflow(x: u32, y: u32) -> (u32, bool);
546546
/// Performs checked `u64` multiplication.
547547
pub fn u64_mul_with_overflow(x: u64, y: u64) -> (u64, bool);
548-
}
549548

550-
// SNAP 880fb89
551-
#[cfg(not(stage0))]
552-
extern "rust-intrinsic" {
553549
/// Returns (a + b) mod 2^N, where N is the width of N in bits.
554550
pub fn overflowing_add<T>(a: T, b: T) -> T;
555551
/// Returns (a - b) mod 2^N, where N is the width of N in bits.

branches/try/src/libcore/iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ pub trait IteratorExt: Iterator + Sized {
611611
///
612612
/// ```
613613
/// let a = [1, 2, 3, 4, 5];
614-
/// assert!(a.iter().fold(0, |acc, &item| acc + item) == 15);
614+
/// assert!(a.iter().fold(0, |a, &b| a + b) == 15);
615615
/// ```
616616
#[inline]
617617
#[stable(feature = "rust1", since = "1.0.0")]

branches/try/src/libcore/marker.rs

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -351,45 +351,7 @@ pub trait PhantomFn<A:?Sized,R:?Sized=()> { }
351351
/// instance, it will behave *as if* an instance of the type `T` were
352352
/// present for the purpose of various automatic analyses.
353353
///
354-
/// # Examples
355-
///
356-
/// When handling external resources over a foreign function interface, `PhantomData<T>` can
357-
/// prevent mismatches by enforcing types in the method implementations, although the struct
358-
/// doesn't actually contain values of the resource type.
359-
///
360-
/// ```
361-
/// # trait ResType { fn foo(&self); };
362-
/// # struct ParamType;
363-
/// # mod foreign_lib {
364-
/// # pub fn new(_: usize) -> *mut () { 42 as *mut () }
365-
/// # pub fn do_stuff(_: *mut (), _: usize) {}
366-
/// # }
367-
/// # fn convert_params(_: ParamType) -> usize { 42 }
368-
/// use std::marker::PhantomData;
369-
/// use std::mem;
370-
///
371-
/// struct ExternalResource<R> {
372-
/// resource_handle: *mut (),
373-
/// resource_type: PhantomData<R>,
374-
/// }
375-
///
376-
/// impl<R: ResType> ExternalResource<R> {
377-
/// fn new() -> ExternalResource<R> {
378-
/// let size_of_res = mem::size_of::<R>();
379-
/// ExternalResource {
380-
/// resource_handle: foreign_lib::new(size_of_res),
381-
/// resource_type: PhantomData,
382-
/// }
383-
/// }
384-
///
385-
/// fn do_stuff(&self, param: ParamType) {
386-
/// let foreign_params = convert_params(param);
387-
/// foreign_lib::do_stuff(self.resource_handle, foreign_params);
388-
/// }
389-
/// }
390-
/// ```
391-
///
392-
/// Another example: embedding a `PhantomData<T>` will inform the compiler
354+
/// For example, embedding a `PhantomData<T>` will inform the compiler
393355
/// that one or more instances of the type `T` could be dropped when
394356
/// instances of the type itself is dropped, though that may not be
395357
/// apparent from the other structure of the type itself. This is

branches/try/src/libcore/num/wrapping.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
use ops::*;
1313

14-
#[cfg(not(stage0))]
1514
use intrinsics::{overflowing_add, overflowing_sub, overflowing_mul};
1615

1716
use intrinsics::{i8_add_with_overflow, u8_add_with_overflow};
@@ -40,7 +39,6 @@ pub trait OverflowingOps {
4039
fn overflowing_mul(self, rhs: Self) -> (Self, bool);
4140
}
4241

43-
#[cfg(not(stage0))]
4442
macro_rules! wrapping_impl {
4543
($($t:ty)*) => ($(
4644
impl WrappingOps for $t {
@@ -66,26 +64,6 @@ macro_rules! wrapping_impl {
6664
)*)
6765
}
6866

69-
#[cfg(stage0)]
70-
macro_rules! wrapping_impl {
71-
($($t:ty)*) => ($(
72-
impl WrappingOps for $t {
73-
#[inline(always)]
74-
fn wrapping_add(self, rhs: $t) -> $t {
75-
self + rhs
76-
}
77-
#[inline(always)]
78-
fn wrapping_sub(self, rhs: $t) -> $t {
79-
self - rhs
80-
}
81-
#[inline(always)]
82-
fn wrapping_mul(self, rhs: $t) -> $t {
83-
self * rhs
84-
}
85-
}
86-
)*)
87-
}
88-
8967
wrapping_impl! { uint u8 u16 u32 u64 int i8 i16 i32 i64 }
9068

9169
#[unstable(feature = "core", reason = "may be removed, renamed, or relocated")]

branches/try/src/librustdoc/html/render.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2247,7 +2247,7 @@ impl<'a> fmt::Display for Sidebar<'a> {
22472247
// there is no sidebar-items.js beyond the crate root path
22482248
// FIXME maybe dynamic crate loading can be merged here
22492249
} else {
2250-
try!(write!(fmt, "<script defer src=\"{path}sidebar-items.js\"></script>",
2250+
try!(write!(fmt, "<script async src=\"{path}sidebar-items.js\"></script>",
22512251
path = relpath));
22522252
}
22532253

0 commit comments

Comments
 (0)