Skip to content

Commit 80fc1f3

Browse files
committed
---
yaml --- r: 229195 b: refs/heads/try c: ac085a6 h: refs/heads/master i: 229193: 465dbf1 229191: 06b8c49 v: v3
1 parent 0fc646e commit 80fc1f3

File tree

175 files changed

+513
-893
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+513
-893
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 6a3545ef055a6c3b46593c2b17512486dc3fa0ee
4+
refs/heads/try: ac085a6a9ea58f0a7f6e44618c6789c5053dd98b
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/mk/main.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
######################################################################
1414

1515
# The version number
16-
CFG_RELEASE_NUM=1.3.0
16+
CFG_RELEASE_NUM=1.4.0
1717

1818
# An optional number to put after the label, e.g. '.2' -> '-beta.2'
1919
# NB Make sure it starts with a dot to conform to semver pre-release

branches/try/src/liballoc/arc.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@
7171
7272
use boxed::Box;
7373

74-
#[cfg(stage0)]
75-
use core::prelude::v1::*;
74+
use core::prelude::*;
7675

7776
use core::atomic;
7877
use core::atomic::Ordering::{Relaxed, Release, Acquire, SeqCst};

branches/try/src/liballoc/boxed.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@
5353
5454
#![stable(feature = "rust1", since = "1.0.0")]
5555

56-
#[cfg(stage0)]
57-
use core::prelude::v1::*;
56+
use core::prelude::*;
5857

5958
use heap;
6059
use raw_vec::RawVec;

branches/try/src/liballoc/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
#![feature(coerce_unsized)]
7676
#![feature(core)]
7777
#![feature(core_intrinsics)]
78+
#![feature(core_prelude)]
7879
#![feature(core_slice_ext)]
7980
#![feature(custom_attribute)]
8081
#![feature(fundamental)]
@@ -92,17 +93,17 @@
9293
#![feature(unsize)]
9394
#![feature(core_slice_ext)]
9495
#![feature(core_str_ext)]
95-
#![cfg_attr(stage0, feature(core, core_prelude))]
9696

9797
#![cfg_attr(test, feature(test, alloc, rustc_private, box_raw))]
9898
#![cfg_attr(all(not(feature = "external_funcs"), not(feature = "external_crate")),
9999
feature(libc))]
100100

101+
#[macro_use]
102+
extern crate core;
103+
101104
#[cfg(all(not(feature = "external_funcs"), not(feature = "external_crate")))]
102105
extern crate libc;
103106

104-
#[cfg(stage0)] #[macro_use] extern crate core;
105-
106107
// Allow testing this library
107108

108109
#[cfg(test)] #[macro_use] extern crate std;

branches/try/src/liballoc/rc.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,7 @@
150150
151151
#![stable(feature = "rust1", since = "1.0.0")]
152152

153-
#[cfg(stage0)]
154-
use core::prelude::v1::*;
153+
use core::prelude::*;
155154

156155
#[cfg(not(test))]
157156
use boxed::Box;

branches/try/src/libcollections/binary_heap.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,7 @@
151151
#![allow(missing_docs)]
152152
#![stable(feature = "rust1", since = "1.0.0")]
153153

154-
#[cfg(stage0)]
155-
use core::prelude::v1::*;
154+
use core::prelude::*;
156155

157156
use core::iter::{FromIterator};
158157
use core::mem::swap;

branches/try/src/libcollections/bit.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@
8686
//! println!("There are {} primes below {}", num_primes, max_prime);
8787
//! ```
8888
89-
#[cfg(stage0)]
90-
use core::prelude::v1::*;
89+
use core::prelude::*;
9190

9291
use core::cmp::Ordering;
9392
use core::cmp;

branches/try/src/libcollections/btree/map.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717

1818
use self::Entry::*;
1919

20-
#[cfg(stage0)]
21-
use core::prelude::v1::*;
20+
use core::prelude::*;
2221

2322
use core::cmp::Ordering;
2423
use core::fmt::Debug;
@@ -531,8 +530,7 @@ enum Continuation<A, B> {
531530
/// to nodes. By using this module much better safety guarantees can be made, and more search
532531
/// boilerplate gets cut out.
533532
mod stack {
534-
#[cfg(stage0)]
535-
use core::prelude::v1::*;
533+
use core::prelude::*;
536534
use core::marker;
537535
use core::mem;
538536
use core::ops::{Deref, DerefMut};

branches/try/src/libcollections/btree/node.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ pub use self::SearchResult::*;
1616
pub use self::ForceResult::*;
1717
pub use self::TraversalItem::*;
1818

19-
#[cfg(stage0)]
20-
use core::prelude::v1::*;
19+
use core::prelude::*;
2120

2221
use core::cmp::Ordering::{Greater, Less, Equal};
2322
use core::intrinsics::arith_offset;

branches/try/src/libcollections/btree/set.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
// This is pretty much entirely stolen from TreeSet, since BTreeMap has an identical interface
1212
// to TreeMap
1313

14-
#[cfg(stage0)]
15-
use core::prelude::v1::*;
14+
use core::prelude::*;
1615

1716
use core::cmp::Ordering::{self, Less, Greater, Equal};
1817
use core::fmt::Debug;

branches/try/src/libcollections/enum_set.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
reason = "matches collection reform specification, \
1818
waiting for dust to settle")]
1919

20-
#[cfg(stage0)]
21-
use core::prelude::v1::*;
22-
20+
use core::prelude::*;
2321
use core::marker;
2422
use core::fmt;
2523
use core::iter::{FromIterator};

branches/try/src/libcollections/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
#![feature(alloc)]
3434
#![feature(box_patterns)]
3535
#![feature(box_syntax)]
36+
#![feature(core)]
3637
#![feature(core_intrinsics)]
38+
#![feature(core_prelude)]
3739
#![feature(core_slice_ext)]
3840
#![feature(core_str_ext)]
3941
#![feature(heap_api)]
@@ -60,12 +62,12 @@
6062
#![feature(utf8_error)]
6163
#![cfg_attr(test, feature(rand, test))]
6264
#![cfg_attr(not(test), feature(str_words))]
63-
#![cfg_attr(stage0, feature(core, core_prelude))]
6465

6566
#![feature(no_std)]
6667
#![no_std]
6768

68-
#[cfg(stage0)] #[macro_use] extern crate core;
69+
#[macro_use]
70+
extern crate core;
6971

7072
extern crate rustc_unicode;
7173
extern crate alloc;

branches/try/src/libcollections/linked_list.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121

2222
#![stable(feature = "rust1", since = "1.0.0")]
2323

24-
#[cfg(stage0)]
25-
use core::prelude::v1::*;
24+
use core::prelude::*;
2625

2726
use alloc::boxed::Box;
2827
use core::cmp::Ordering;

branches/try/src/libcollections/string.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
1313
#![stable(feature = "rust1", since = "1.0.0")]
1414

15-
#[cfg(stage0)]
16-
use core::prelude::v1::*;
15+
use core::prelude::*;
1716

1817
use core::fmt;
1918
use core::hash;

branches/try/src/libcollections/vec.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@
5858
5959
#![stable(feature = "rust1", since = "1.0.0")]
6060

61-
#[cfg(stage0)]
62-
use core::prelude::v1::*;
63-
61+
use core::prelude::*;
6462
use alloc::raw_vec::RawVec;
6563
use alloc::boxed::Box;
6664
use alloc::heap::EMPTY;

branches/try/src/libcollections/vec_deque.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
1919
#![stable(feature = "rust1", since = "1.0.0")]
2020

21-
#[cfg(stage0)]
22-
use core::prelude::v1::*;
21+
use core::prelude::*;
2322

2423
use core::cmp::Ordering;
2524
use core::fmt;

branches/try/src/libcollections/vec_map.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020

2121
use self::Entry::*;
2222

23-
#[cfg(stage0)]
24-
use core::prelude::v1::*;
23+
use core::prelude::*;
2524

2625
use core::cmp::{max, Ordering};
2726
use core::fmt;

branches/try/src/libcore/fmt/builders.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use prelude::v1::*;
11+
use prelude::*;
1212
use fmt::{self, Write, FlagV1};
1313

1414
struct PadAdapter<'a, 'b: 'a> {

branches/try/src/libcore/fmt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
#![stable(feature = "rust1", since = "1.0.0")]
1414

15-
use prelude::v1::*;
15+
use prelude::*;
1616

1717
use cell::{Cell, RefCell, Ref, RefMut, BorrowState};
1818
use marker::PhantomData;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
// FIXME: #6220 Implement floating point formatting
1414

15-
use prelude::v1::*;
15+
use prelude::*;
1616

1717
use fmt;
1818
use num::Zero;

branches/try/src/libcore/hash/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
6363
#![stable(feature = "rust1", since = "1.0.0")]
6464

65-
use prelude::v1::*;
65+
use prelude::*;
6666

6767
use mem;
6868

@@ -183,7 +183,7 @@ pub fn hash<T: Hash, H: Hasher + Default>(value: &T) -> u64 {
183183
//////////////////////////////////////////////////////////////////////////////
184184

185185
mod impls {
186-
use prelude::v1::*;
186+
use prelude::*;
187187

188188
use slice;
189189
use super::*;

branches/try/src/libcore/hash/sip.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010

1111
//! An implementation of SipHash 2-4.
1212
13-
use prelude::v1::*;
14-
1513
use ptr;
14+
use prelude::*;
1615
use super::Hasher;
1716

1817
/// An implementation of SipHash 2-4.

branches/try/src/libcore/lib.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,8 @@
6060
html_playground_url = "http://play.rust-lang.org/")]
6161
#![doc(test(no_crate_inject))]
6262

63-
#![cfg_attr(stage0, feature(no_std))]
64-
#![cfg_attr(stage0, no_std)]
65-
#![cfg_attr(not(stage0), feature(no_core))]
66-
#![cfg_attr(not(stage0), no_core)]
63+
#![feature(no_std)]
64+
#![no_std]
6765
#![allow(raw_pointer_derive)]
6866
#![deny(missing_docs)]
6967

@@ -170,7 +168,6 @@ mod tuple;
170168
// compiling the core library when it's compiling this library, so it expands
171169
// all references to `::core::$foo`
172170
#[doc(hidden)]
173-
#[cfg(stage0)]
174171
mod core {
175172
pub use intrinsics; // derive(PartialOrd)
176173
pub use fmt; // format_args!

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#![stable(feature = "rust1", since = "1.0.0")]
1717

18-
use prelude::v1::*;
18+
use prelude::*;
1919

2020
use intrinsics;
2121
use mem;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#![stable(feature = "rust1", since = "1.0.0")]
1717

18-
use prelude::v1::*;
18+
use prelude::*;
1919

2020
use intrinsics;
2121
use mem;

branches/try/src/libcore/num/flt2dec/bignum.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
2222
#![macro_use]
2323

24-
use prelude::v1::*;
25-
24+
use prelude::*;
2625
use mem;
2726
use intrinsics;
2827

@@ -352,7 +351,7 @@ define_bignum!(Big32x36: type=Digit32, n=36);
352351
// this one is used for testing only.
353352
#[doc(hidden)]
354353
pub mod tests {
355-
use prelude::v1::*;
354+
use prelude::*;
356355
define_bignum!(Big8x3: type=u8, n=3);
357356
}
358357

branches/try/src/libcore/num/flt2dec/decoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
//! Decodes a floating-point value into individual parts and error ranges.
1212
13-
use prelude::v1::*;
13+
use prelude::*;
1414

1515
use {f32, f64};
1616
use num::{Float, FpCategory};

branches/try/src/libcore/num/flt2dec/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ functions.
129129
#![unstable(feature = "flt2dec",
130130
reason = "internal routines only exposed for testing")]
131131

132-
use prelude::v1::*;
132+
use prelude::*;
133133
use i16;
134134
use num::Float;
135135
use slice::bytes;

branches/try/src/libcore/num/flt2dec/strategy/dragon.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ Almost direct (but slightly optimized) Rust translation of Figure 3 of [1].
1515
quickly and accurately. SIGPLAN Not. 31, 5 (May. 1996), 108-116.
1616
*/
1717

18-
use prelude::v1::*;
19-
18+
use prelude::*;
2019
use num::Float;
2120
use cmp::Ordering;
2221

branches/try/src/libcore/num/flt2dec/strategy/grisu.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ Rust adaptation of Grisu3 algorithm described in [1]. It uses about
1616
accurately with integers. SIGPLAN Not. 45, 6 (June 2010), 233-243.
1717
*/
1818

19-
use prelude::v1::*;
20-
19+
use prelude::*;
2120
use num::Float;
2221

2322
use num::flt2dec::{Decoded, MAX_SIG_DIGITS, round_up};

branches/try/src/libcore/prelude/v1.rs renamed to branches/try/src/libcore/prelude.rs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,18 @@
1111
//! The core prelude
1212
//!
1313
//! This module is intended for users of libcore which do not link to libstd as
14-
//! well. This module is imported by default when `#![no_std]` is used in the
15-
//! same manner as the standard library's prelude.
14+
//! well. This module is not imported by default, but using the entire contents
15+
//! of this module will provide all of the useful traits and types in libcore
16+
//! that one would expect from the standard library as well.
17+
//!
18+
//! There is no method to automatically inject this prelude, and this prelude is
19+
//! a subset of the standard library's prelude.
20+
//!
21+
//! # Example
22+
//!
23+
//! ```ignore
24+
//! use core::prelude::*;
25+
//! ```
1626
1727
#![unstable(feature = "core_prelude",
1828
reason = "the libcore prelude has not been scrutinized and \

0 commit comments

Comments
 (0)