Skip to content

Commit a34372a

Browse files
committed
---
yaml --- r: 55281 b: refs/heads/master c: 5b933ae h: refs/heads/master i: 55279: 0e01eeb v: v3
1 parent 7e400b1 commit a34372a

Some content is hidden

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

81 files changed

+1429
-1366
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: 3044f5e2b64ae8c0ee726ec42f3d2a3faca9e77e
2+
refs/heads/master: 5b933aeba22a718d5dadeb395b5e3b2d183812bf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 79a2b2eafc3c766cecec8a5f76317693bae9ed17
55
refs/heads/try: 8eb2bab100b42f0ba751552d8eff00eb2134c55a

trunk/doc/rust.md

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,10 @@ expression context, the final namespace qualifier is omitted.
441441
Two examples of paths with type arguments:
442442

443443
~~~~
444-
# use core::hashmap::linear::LinearMap;
444+
# use core::hashmap::HashMap;
445445
# fn f() {
446446
# fn id<T:Copy>(t: T) -> T { t }
447-
type t = LinearMap<int,~str>; // Type arguments used in a type expression
447+
type t = HashMap<int,~str>; // Type arguments used in a type expression
448448
let x = id::<int>(10); // Type arguments used in a call expression
449449
# }
450450
~~~~
@@ -3251,28 +3251,6 @@ of runtime logging modules follows.
32513251
* `::rt::backtrace` Log a backtrace on task failure
32523252
* `::rt::callback` Unused
32533253

3254-
#### Logging Expressions
3255-
3256-
Rust provides several macros to log information. Here's a simple Rust program
3257-
that demonstrates all four of them:
3258-
3259-
```rust
3260-
fn main() {
3261-
error!("This is an error log")
3262-
warn!("This is a warn log")
3263-
info!("this is an info log")
3264-
debug!("This is a dubug log")
3265-
}
3266-
```
3267-
3268-
These four log levels correspond to levels 1-4, as controlled by `RUST_LOG`:
3269-
3270-
```bash
3271-
$ RUST_LOG=rust=3 ./rust
3272-
rust: ~"\"This is an error log\""
3273-
rust: ~"\"This is a warn log\""
3274-
rust: ~"\"this is an info log\""
3275-
```
32763254

32773255
# Appendix: Rationales and design tradeoffs
32783256

trunk/doc/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1888,8 +1888,8 @@ illegal to copy and pass by value.
18881888
Generic `type`, `struct`, and `enum` declarations follow the same pattern:
18891889

18901890
~~~~
1891-
# use core::hashmap::linear::LinearMap;
1892-
type Set<T> = LinearMap<T, ()>;
1891+
# use core::hashmap::HashMap;
1892+
type Set<T> = HashMap<T, ()>;
18931893
18941894
struct Stack<T> {
18951895
elements: ~[T]

trunk/src/libcore/gc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ use io;
4343
use libc::{size_t, uintptr_t};
4444
use option::{None, Option, Some};
4545
use ptr;
46-
use hashmap::linear::LinearSet;
46+
use hashmap::HashSet;
4747
use stackwalk;
4848
use sys;
4949

@@ -344,7 +344,7 @@ pub fn cleanup_stack_for_failure() {
344344
ptr::null()
345345
};
346346

347-
let mut roots = LinearSet::new();
347+
let mut roots = HashSet::new();
348348
for walk_gc_roots(need_cleanup, sentinel) |root, tydesc| {
349349
// Track roots to avoid double frees.
350350
if roots.contains(&*root) {

0 commit comments

Comments
 (0)