Skip to content

Commit aae026d

Browse files
committed
Resolve merge conflict
Change getdtablesize() to sysconf(_SC_OPEN_MAX) for portability.
2 parents 0ce5254 + 3fbfad3 commit aae026d

File tree

423 files changed

+2751
-2338
lines changed

Some content is hidden

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

423 files changed

+2751
-2338
lines changed

AUTHORS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ Olivier Saut <[email protected]>
516516
Olle Jonsson <[email protected]>
517517
Or Brostovski <[email protected]>
518518
Oren Hazi <[email protected]>
519-
Orphée Lafond-Lummis <o@orftz.com>
519+
Orpheus Lummis <o@orpheuslummis.com>
520520
521521
Pablo Brasero <[email protected]>
522522
Palmer Cox <[email protected]>

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ example, if it's 2014, and you change a Rust file that was created in
5050
# Coordination and communication
5151

5252
Get feedback from other developers on
53-
[discuss.rust-lang.org][discuss], and
53+
[internals.rust-lang.org][internals], and
5454
[#rust-internals][pound-rust-internals].
5555

5656
[pound-rust-internals]: http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-internals
57-
[discuss]: http://discuss.rust-lang.org
57+
[internals]: http://internals.rust-lang.org
5858

5959
For more details, please refer to
6060
[Note-development-policy](https://github.com/rust-lang/rust/wiki/Note-development-policy).

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ documentation.
3030

3131
To build from the [tarball] do:
3232

33-
$ curl -O https://static.rust-lang.org/dist/rust-nightly.tar.gz
34-
$ tar -xzf rust-nightly.tar.gz
35-
$ cd rust-nightly
33+
$ curl -O https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz
34+
$ tar -xzf rustc-nightly-src.tar.gz
35+
$ cd rustc-nightly
3636

3737
Or to build from the [repo] do:
3838

@@ -80,7 +80,7 @@ $ pacman -S base-devel
8080
$ make && make install
8181

8282
[repo]: https://github.com/rust-lang/rust
83-
[tarball]: https://static.rust-lang.org/dist/rust-nightly.tar.gz
83+
[tarball]: https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz
8484
[trpl]: http://doc.rust-lang.org/book/index.html
8585

8686
## Notes
@@ -112,11 +112,11 @@ The Rust community congregates in a few places:
112112

113113
* [StackOverflow] - Get help here.
114114
* [/r/rust] - General discussion.
115-
* [discuss.rust-lang.org] - For development of the Rust language itself.
115+
* [internals.rust-lang.org] - For development of the Rust language itself.
116116

117117
[StackOverflow]: http://stackoverflow.com/questions/tagged/rust
118118
[/r/rust]: http://reddit.com/r/rust
119-
[discuss.rust-lang.org]: http://discuss.rust-lang.org/
119+
[internals.rust-lang.org]: http://internals.rust-lang.org/
120120

121121
## License
122122

src/compiletest/common.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,6 @@ pub use self::Mode::*;
1212
use std::fmt;
1313
use std::str::FromStr;
1414

15-
#[cfg(stage0)] // NOTE: remove impl after snapshot
16-
#[derive(Clone, Copy, PartialEq, Show)]
17-
pub enum Mode {
18-
CompileFail,
19-
RunFail,
20-
RunPass,
21-
RunPassValgrind,
22-
Pretty,
23-
DebugInfoGdb,
24-
DebugInfoLldb,
25-
Codegen
26-
}
27-
28-
#[cfg(not(stage0))] // NOTE: remove cfg after snapshot
2915
#[derive(Clone, Copy, PartialEq, Debug)]
3016
pub enum Mode {
3117
CompileFail,

src/compiletest/compiletest.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#![feature(os)]
2424
#![feature(unicode)]
2525

26+
#![allow(unstable)]
2627
#![deny(warnings)]
2728

2829
extern crate test;

src/compiletest/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub struct ExpectedError {
1717
pub msg: String,
1818
}
1919

20-
#[derive(PartialEq, Show)]
20+
#[derive(PartialEq, Debug)]
2121
enum WhichLine { ThisLine, FollowPrevious(uint), AdjustBackward(uint) }
2222

2323
/// Looks for either "//~| KIND MESSAGE" or "//~^^... KIND MESSAGE"

src/doc/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ problem might reveal someone who has asked it before!
4141
There is an active [subreddit](http://reddit.com/r/rust) with lots of
4242
discussion about Rust.
4343

44-
There is also a [developer forum](http://discuss.rust-lang.org/), where the
44+
There is also a [developer forum](http://internals.rust-lang.org/), where the
4545
development of Rust itself is discussed.
4646

4747
# Specification

src/doc/trpl/error-handling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ for all but the most trivial of situations.
147147
Here's an example of using `Result`:
148148

149149
```rust
150-
#[derive(Show)]
150+
#[derive(Debug)]
151151
enum Version { Version1, Version2 }
152152

153-
#[derive(Show)]
153+
#[derive(Debug)]
154154
enum ParseError { InvalidHeaderLength, InvalidVersion }
155155

156156
fn parse_version(header: &[u8]) -> Result<Version, ParseError> {

src/doc/trpl/pointers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ Sometimes, you need a recursive data structure. The simplest is known as a
605605

606606

607607
```{rust}
608-
#[derive(Show)]
608+
#[derive(Debug)]
609609
enum List<T> {
610610
Cons(T, Box<List<T>>),
611611
Nil,

src/etc/local_stage0.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,16 @@ case $OS in
2121
("Linux"|"FreeBSD"|"DragonFly")
2222
BIN_SUF=
2323
LIB_SUF=.so
24-
break
2524
;;
2625
("Darwin")
2726
BIN_SUF=
2827
LIB_SUF=.dylib
29-
break
3028
;;
3129
(*)
3230
BIN_SUF=.exe
3331
LIB_SUF=.dll
3432
LIB_DIR=bin
3533
LIB_PREFIX=
36-
break
3734
;;
3835
esac
3936

src/liballoc/arc.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
//!
3838
//! let five = Arc::new(5i);
3939
//!
40-
//! for _ in range(0u, 10) {
40+
//! for _ in 0u..10 {
4141
//! let five = five.clone();
4242
//!
4343
//! Thread::spawn(move || {
@@ -54,7 +54,7 @@
5454
//!
5555
//! let five = Arc::new(Mutex::new(5i));
5656
//!
57-
//! for _ in range(0u, 10) {
57+
//! for _ in 0u..10 {
5858
//! let five = five.clone();
5959
//!
6060
//! Thread::spawn(move || {
@@ -95,10 +95,10 @@ use heap::deallocate;
9595
/// use std::thread::Thread;
9696
///
9797
/// fn main() {
98-
/// let numbers: Vec<_> = range(0, 100u32).map(|i| i as f32).collect();
98+
/// let numbers: Vec<_> = (0..100u32).map(|i| i as f32).collect();
9999
/// let shared_numbers = Arc::new(numbers);
100100
///
101-
/// for _ in range(0u, 10) {
101+
/// for _ in 0u..10 {
102102
/// let child_numbers = shared_numbers.clone();
103103
///
104104
/// Thread::spawn(move || {
@@ -814,6 +814,6 @@ mod tests {
814814
}
815815

816816
// Make sure deriving works with Arc<T>
817-
#[derive(Eq, Ord, PartialEq, PartialOrd, Clone, Show, Default)]
817+
#[derive(Eq, Ord, PartialEq, PartialOrd, Clone, Debug, Default)]
818818
struct Foo { inner: Arc<int> }
819819
}

src/liballoc/boxed.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
//! Creating a recursive data structure:
3030
//!
3131
//! ```
32-
//! #[derive(Show)]
32+
//! #[derive(Debug)]
3333
//! enum List<T> {
3434
//! Cons(T, Box<List<T>>),
3535
//! Nil,
@@ -250,8 +250,6 @@ impl<T: ?Sized> DerefMut for Box<T> {
250250
fn deref_mut(&mut self) -> &mut T { &mut **self }
251251
}
252252

253-
// FIXME(#21363) remove `old_impl_check` when bug is fixed
254-
#[old_impl_check]
255253
impl<'a, T> Iterator for Box<Iterator<Item=T> + 'a> {
256254
type Item = T;
257255

src/liballoc/heap.rs

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

11+
#[cfg(not(test))]
1112
use core::ptr::PtrExt;
1213

1314
// FIXME: #13996: mark the `allocate` and `reallocate` return value as `noalias`

src/liballoc/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@
7070
#![feature(lang_items, unsafe_destructor)]
7171
#![feature(box_syntax)]
7272
#![feature(optin_builtin_traits)]
73-
// FIXME(#21363) remove `old_impl_check` when bug is fixed
74-
#![feature(old_impl_check)]
73+
#![feature(unboxed_closures)]
7574
#![allow(unknown_features)] #![feature(int_uint)]
7675
#![feature(core)]
7776
#![feature(hash)]

src/libarena/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ impl Arena {
311311
#[test]
312312
fn test_arena_destructors() {
313313
let arena = Arena::new();
314-
for i in range(0u, 10) {
314+
for i in 0u..10 {
315315
// Arena allocate something with drop glue to make sure it
316316
// doesn't leak.
317317
arena.alloc(|| Rc::new(i));
@@ -340,7 +340,7 @@ fn test_arena_alloc_nested() {
340340
fn test_arena_destructors_fail() {
341341
let arena = Arena::new();
342342
// Put some stuff in the arena.
343-
for i in range(0u, 10) {
343+
for i in 0u..10 {
344344
// Arena allocate something with drop glue to make sure it
345345
// doesn't leak.
346346
arena.alloc(|| { Rc::new(i) });
@@ -410,7 +410,7 @@ impl<T> TypedArenaChunk<T> {
410410
// Destroy all the allocated objects.
411411
if intrinsics::needs_drop::<T>() {
412412
let mut start = self.start();
413-
for _ in range(0, len) {
413+
for _ in 0..len {
414414
ptr::read(start as *const T); // run the destructor on the pointer
415415
start = start.offset(mem::size_of::<T>() as int)
416416
}
@@ -530,7 +530,7 @@ mod tests {
530530
#[test]
531531
pub fn test_copy() {
532532
let arena = TypedArena::new();
533-
for _ in range(0u, 100000) {
533+
for _ in 0u..100000 {
534534
arena.alloc(Point {
535535
x: 1,
536536
y: 2,
@@ -585,7 +585,7 @@ mod tests {
585585
#[test]
586586
pub fn test_noncopy() {
587587
let arena = TypedArena::new();
588-
for _ in range(0u, 100000) {
588+
for _ in 0u..100000 {
589589
arena.alloc(Noncopy {
590590
string: "hello world".to_string(),
591591
array: vec!( 1, 2, 3, 4, 5 ),

src/libcollections/bench.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub fn insert_rand_n<M, I, R>(n: uint,
2424
// setup
2525
let mut rng = rand::weak_rng();
2626

27-
for _ in range(0, n) {
27+
for _ in 0..n {
2828
insert(map, rng.gen::<uint>() % n);
2929
}
3030

@@ -46,7 +46,7 @@ pub fn insert_seq_n<M, I, R>(n: uint,
4646
R: FnMut(&mut M, uint),
4747
{
4848
// setup
49-
for i in range(0u, n) {
49+
for i in 0u..n {
5050
insert(map, i * 2);
5151
}
5252

@@ -70,7 +70,7 @@ pub fn find_rand_n<M, T, I, F>(n: uint,
7070
{
7171
// setup
7272
let mut rng = rand::weak_rng();
73-
let mut keys = range(0, n).map(|_| rng.gen::<uint>() % n)
73+
let mut keys = (0..n).map(|_| rng.gen::<uint>() % n)
7474
.collect::<Vec<_>>();
7575

7676
for k in keys.iter() {
@@ -97,7 +97,7 @@ pub fn find_seq_n<M, T, I, F>(n: uint,
9797
F: FnMut(&M, uint) -> T,
9898
{
9999
// setup
100-
for i in range(0u, n) {
100+
for i in 0u..n {
101101
insert(map, i);
102102
}
103103

src/libcollections/binary_heap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
//! // for a simpler implementation.
6868
//! fn shortest_path(adj_list: &Vec<Vec<Edge>>, start: uint, goal: uint) -> uint {
6969
//! // dist[node] = current shortest distance from `start` to `node`
70-
//! let mut dist: Vec<_> = range(0, adj_list.len()).map(|_| uint::MAX).collect();
70+
//! let mut dist: Vec<_> = (0..adj_list.len()).map(|_| uint::MAX).collect();
7171
//!
7272
//! let mut heap = BinaryHeap::new();
7373
//!

0 commit comments

Comments
 (0)