Skip to content

Commit 33a11a3

Browse files
committed
---
yaml --- r: 190903 b: refs/heads/master c: 84b14c5 h: refs/heads/master i: 190901: 92b3199 190899: 16db261 190895: 6392209 v: v3
1 parent 9071577 commit 33a11a3

File tree

96 files changed

+507
-759
lines changed

Some content is hidden

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

96 files changed

+507
-759
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: f5782faa0667c0ee64eba8b5d49fc7d94358601e
2+
refs/heads/master: 84b14c5dc9bceeadb24beaa5ae1b126701b7d932
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: c64d671671aea2e44ee7fc6eb00ee75fc30ed7b9
55
refs/heads/try: 1c28ab65017d74fc13d003f7c7a73d1a48e5406f

trunk/man/rustc.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ full debug info with variable and type information.
242242
\fBopt\-level\fR=\fIVAL\fR
243243
Optimize with possible levels 0\[en]3
244244

245-
.SH ENVIRONMENT
245+
.SH ENVIRONMENT VARIABLES
246246

247247
Some of these affect the output of the compiler, while others affect programs
248248
which link to the standard library.

trunk/src/compiletest/procsrv.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010

1111
#![allow(deprecated)] // for old path, for dynamic_lib
1212

13-
use std::dynamic_lib::DynamicLibrary;
14-
use std::io::prelude::*;
15-
use std::old_path::Path;
1613
use std::process::{ExitStatus, Command, Child, Output, Stdio};
14+
use std::io::prelude::*;
15+
use std::dynamic_lib::DynamicLibrary;
1716

1817
fn add_target_env(cmd: &mut Command, lib_path: &str, aux_path: Option<&str>) {
1918
// Need to be sure to put both the lib_path and the aux path in the dylib

trunk/src/doc/trpl/SUMMARY.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Summary
22

3-
* [The Basics](basic.md)
3+
* [I: The Basics](basic.md)
44
* [Installing Rust](installing-rust.md)
55
* [Hello, world!](hello-world.md)
66
* [Hello, Cargo!](hello-cargo.md)
@@ -14,7 +14,7 @@
1414
* [Strings](strings.md)
1515
* [Arrays, Vectors, and Slices](arrays-vectors-and-slices.md)
1616
* [Standard Input](standard-input.md)
17-
* [Intermediate Rust](intermediate.md)
17+
* [II: Intermediate Rust](intermediate.md)
1818
* [Crates and Modules](crates-and-modules.md)
1919
* [Testing](testing.md)
2020
* [Pointers](pointers.md)
@@ -31,7 +31,7 @@
3131
* [Concurrency](concurrency.md)
3232
* [Error Handling](error-handling.md)
3333
* [Documentation](documentation.md)
34-
* [Advanced Topics](advanced.md)
34+
* [III: Advanced Topics](advanced.md)
3535
* [FFI](ffi.md)
3636
* [Unsafe Code](unsafe.md)
3737
* [Advanced Macros](advanced-macros.md)

trunk/src/libcollections/btree/map.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use core::default::Default;
2424
use core::fmt::Debug;
2525
use core::hash::{Hash, Hasher};
2626
use core::iter::{Map, FromIterator, IntoIterator};
27-
use core::ops::{Index};
27+
use core::ops::{Index, IndexMut};
2828
use core::{iter, fmt, mem, usize};
2929
use Bound::{self, Included, Excluded, Unbounded};
3030

@@ -925,6 +925,15 @@ impl<K: Ord, Q: ?Sized, V> Index<Q> for BTreeMap<K, V>
925925
}
926926
}
927927

928+
#[stable(feature = "rust1", since = "1.0.0")]
929+
impl<K: Ord, Q: ?Sized, V> IndexMut<Q> for BTreeMap<K, V>
930+
where K: Borrow<Q>, Q: Ord
931+
{
932+
fn index_mut(&mut self, key: &Q) -> &mut V {
933+
self.get_mut(key).expect("no entry found for key")
934+
}
935+
}
936+
928937
/// Genericises over how to get the correct type of iterator from the correct type
929938
/// of Node ownership.
930939
trait Traverse<N> {

trunk/src/libcollections/fmt.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@
262262
//!
263263
//! ```
264264
//! # #![allow(unused_must_use)]
265-
//! use std::io::Write;
266265
//! let mut w = Vec::new();
267266
//! write!(&mut w, "Hello {}!", "world");
268267
//! ```
@@ -289,15 +288,15 @@
289288
//!
290289
//! ```
291290
//! use std::fmt;
292-
//! use std::io::{self, Write};
291+
//! use std::old_io;
293292
//!
294293
//! fmt::format(format_args!("this returns {}", "String"));
295294
//!
296-
//! let mut some_writer = io::stdout();
295+
//! let mut some_writer = old_io::stdout();
297296
//! write!(&mut some_writer, "{}", format_args!("print with a {}", "macro"));
298297
//!
299298
//! fn my_fmt_fn(args: fmt::Arguments) {
300-
//! write!(&mut io::stdout(), "{}", args);
299+
//! write!(&mut old_io::stdout(), "{}", args);
301300
//! }
302301
//! my_fmt_fn(format_args!("or a {} too", "function"));
303302
//! ```

trunk/src/libcore/macros.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ macro_rules! try {
176176
///
177177
/// ```
178178
/// # #![allow(unused_must_use)]
179-
/// use std::io::Write;
180179
///
181180
/// let mut w = Vec::new();
182181
/// write!(&mut w, "test");

trunk/src/libcore/prelude.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ pub use marker::{Copy, Send, Sized, Sync};
2929
pub use ops::{Drop, Fn, FnMut, FnOnce};
3030

3131
// Reexported functions
32+
#[allow(deprecated)]
33+
pub use iter::range;
3234
pub use mem::drop;
3335

3436
// Reexported types and traits

trunk/src/libcore/result.rs

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@
110110
//! something like this:
111111
//!
112112
//! ```{.ignore}
113-
//! use std::old_io::*;
114-
//! use std::old_path::Path;
113+
//! use std::old_io::{File, Open, Write};
115114
//!
116115
//! let mut file = File::open_mode(&Path::new("valuable_data.txt"), Open, Write);
117116
//! // If `write_line` errors, then we'll never know, because the return
@@ -129,8 +128,7 @@
129128
//! a marginally useful message indicating why:
130129
//!
131130
//! ```{.no_run}
132-
//! use std::old_io::*;
133-
//! use std::old_path::Path;
131+
//! use std::old_io::{File, Open, Write};
134132
//!
135133
//! let mut file = File::open_mode(&Path::new("valuable_data.txt"), Open, Write);
136134
//! file.write_line("important message").ok().expect("failed to write message");
@@ -140,8 +138,7 @@
140138
//! You might also simply assert success:
141139
//!
142140
//! ```{.no_run}
143-
//! # use std::old_io::*;
144-
//! # use std::old_path::Path;
141+
//! # use std::old_io::{File, Open, Write};
145142
//!
146143
//! # let mut file = File::open_mode(&Path::new("valuable_data.txt"), Open, Write);
147144
//! assert!(file.write_line("important message").is_ok());
@@ -151,8 +148,7 @@
151148
//! Or propagate the error up the call stack with `try!`:
152149
//!
153150
//! ```
154-
//! # use std::old_io::*;
155-
//! # use std::old_path::Path;
151+
//! # use std::old_io::{File, Open, Write, IoError};
156152
//! fn write_message() -> Result<(), IoError> {
157153
//! let mut file = File::open_mode(&Path::new("valuable_data.txt"), Open, Write);
158154
//! try!(file.write_line("important message"));
@@ -171,8 +167,7 @@
171167
//! It replaces this:
172168
//!
173169
//! ```
174-
//! use std::old_io::*;
175-
//! use std::old_path::Path;
170+
//! use std::old_io::{File, Open, Write, IoError};
176171
//!
177172
//! struct Info {
178173
//! name: String,
@@ -196,8 +191,7 @@
196191
//! With this:
197192
//!
198193
//! ```
199-
//! use std::old_io::*;
200-
//! use std::old_path::Path;
194+
//! use std::old_io::{File, Open, Write, IoError};
201195
//!
202196
//! struct Info {
203197
//! name: String,
@@ -452,7 +446,7 @@ impl<T, E> Result<T, E> {
452446
/// ignoring I/O and parse errors:
453447
///
454448
/// ```
455-
/// use std::old_io::*;
449+
/// use std::old_io::IoResult;
456450
///
457451
/// let mut buffer: &[u8] = b"1\n2\n3\n4\n";
458452
/// let mut buffer = &mut buffer;

trunk/src/libcoretest/str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fn test_bool_from_str() {
3535
fn check_contains_all_substrings(s: &str) {
3636
assert!(s.contains(""));
3737
for i in 0..s.len() {
38-
for j in i+1..s.len() + 1 {
38+
for j in range(i+1, s.len() + 1) {
3939
assert!(s.contains(&s[i..j]));
4040
}
4141
}

trunk/src/librustc/README.md

Lines changed: 0 additions & 128 deletions
This file was deleted.

0 commit comments

Comments
 (0)