Skip to content

Commit 3396fac

Browse files
committed
---
yaml --- r: 163143 b: refs/heads/snap-stage3 c: 553ab27 h: refs/heads/master i: 163141: 18c2d5b 163139: e6e6c66 163135: 5253ebd v: v3
1 parent 0294a6b commit 3396fac

35 files changed

+478
-593
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: 9146a919b616e39e528e4d7100d16eef52f1f852
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: ae60f9c59289adf8e46b2b3152f618caffc74bf4
4+
refs/heads/snap-stage3: 553ab271a31a9573fb6e95d03d8f4d00e17d6511
55
refs/heads/try: 20cbbffeefc1f35e2ea63afce7b42fbd79611d42
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/doc/guide-ownership.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ must have a deallocation for each allocation. Rust handles this for you. It
9393
knows that our handle, `x`, is the owning reference to our box. Rust knows that
9494
`x` will go out of scope at the end of the block, and so it inserts a call to
9595
deallocate the memory at the end of the scope. Because the compiler does this
96-
for us, it's impossible to forget. We always have exactly one deallocation paired
96+
for us, it's impossible to forget. We always exaclty one deallocations paired
9797
with each of our allocations.
9898

9999
This is pretty straightforward, but what happens when we want to pass our box
@@ -186,11 +186,11 @@ This function takes ownership, because it takes a `Box`, which owns its
186186
contents. But then we give ownership right back.
187187

188188
In the physical world, you can give one of your possessions to someone for a
189-
short period of time. You still own your possession, you're just letting someone
189+
short period of time. You still own your posession, you're just letting someone
190190
else use it for a while. We call that 'lending' something to someone, and that
191191
person is said to be 'borrowing' that something from you.
192192

193-
Rust's ownership system also allows an owner to lend out a handle for a limited
193+
Rust's ownershp system also allows an owner to lend out a handle for a limited
194194
period. This is also called 'borrowing.' Here's a version of `add_one` which
195195
borrows its argument rather than taking ownership:
196196

@@ -231,7 +231,7 @@ fn add_one(num: &int) -> int {
231231

232232
Rust has a feature called 'lifetime elision,' which allows you to not write
233233
lifetime annotations in certain circumstances. This is one of them. Without
234-
eliding the lifetimes, `add_one` looks like this:
234+
eliding the liftimes, `add_one` looks like this:
235235

236236
```rust
237237
fn add_one<'a>(num: &'a int) -> int {
@@ -254,7 +254,7 @@ This part _declares_ our lifetimes. This says that `add_one` has one lifetime,
254254
fn add_two<'a, 'b>(...)
255255
```
256256

257-
Then in our parameter list, we use the lifetimes we've named:
257+
Then in our parameter list, we use the liftimes we've named:
258258

259259
```{rust,ignore}
260260
...(num: &'a int) -> ...
@@ -279,7 +279,7 @@ fn main() {
279279
}
280280
```
281281

282-
As you can see, `struct`s can also have lifetimes. In a similar way to functions,
282+
As you can see, `struct`s can also have liftimes. In a similar way to functions,
283283

284284
```{rust}
285285
struct Foo<'a> {
@@ -295,7 +295,7 @@ x: &'a int,
295295
# }
296296
```
297297

298-
uses it. So why do we need a lifetime here? We need to ensure that any reference
298+
uses it. So why do we need a liftime here? We need to ensure that any reference
299299
to a `Foo` cannot outlive the reference to an `int` it contains.
300300

301301
## Thinking in scopes

branches/snap-stage3/src/doc/guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3681,8 +3681,8 @@ Here's the second note, which lets us know where the first borrow would be over.
36813681
This is useful, because if we wait to try to borrow `x` after this borrow is
36823682
over, then everything will work.
36833683

3684-
For more advanced patterns, please consult the [Ownership
3685-
Guide](guide-ownership.html). You'll also learn what this type signature with
3684+
For more advanced patterns, please consult the [Lifetime
3685+
Guide](guide-lifetimes.html). You'll also learn what this type signature with
36863686
the `'a` syntax is:
36873687

36883688
```{rust,ignore}

branches/snap-stage3/src/libcollections/btree/map.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,24 +1026,6 @@ impl<'a, K: Ord, V> OccupiedEntry<'a, K, V> {
10261026

10271027
impl<K, V> BTreeMap<K, V> {
10281028
/// Gets an iterator over the entries of the map.
1029-
///
1030-
/// # Example
1031-
///
1032-
/// ```
1033-
/// use std::collections::BTreeMap;
1034-
///
1035-
/// let mut map = BTreeMap::new();
1036-
/// map.insert(1u, "a");
1037-
/// map.insert(2u, "b");
1038-
/// map.insert(3u, "c");
1039-
///
1040-
/// for (key, value) in map.iter() {
1041-
/// println!("{}: {}", key, value);
1042-
/// }
1043-
///
1044-
/// let (first_key, first_value) = map.iter().next().unwrap();
1045-
/// assert_eq!((*first_key, *first_value), (1u, "a"));
1046-
/// ```
10471029
#[unstable = "matches collection reform specification, waiting for dust to settle"]
10481030
pub fn iter<'a>(&'a self) -> Entries<'a, K, V> {
10491031
let len = self.len();

branches/snap-stage3/src/libcore/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
#![allow(unknown_features, raw_pointer_deriving)]
6060
#![feature(globs, intrinsics, lang_items, macro_rules, phase)]
6161
#![feature(simd, unsafe_destructor, slicing_syntax)]
62-
#![feature(default_type_params, unboxed_closures)]
62+
#![feature(default_type_params)]
6363
#![deny(missing_docs)]
6464

6565
mod macros;

branches/snap-stage3/src/librustc/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ pub mod middle {
8888
pub mod privacy;
8989
pub mod reachable;
9090
pub mod region;
91-
pub mod recursion_limit;
9291
pub mod resolve;
9392
pub mod resolve_lifetime;
9493
pub mod stability;

branches/snap-stage3/src/librustc/middle/recursion_limit.rs

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

0 commit comments

Comments
 (0)