Skip to content

Commit 08c9d55

Browse files
committed
---
yaml --- r: 174694 b: refs/heads/snap-stage3 c: 631896d h: refs/heads/master v: v3
1 parent 64675c2 commit 08c9d55

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
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: a0f86de49748b472d4d189d9688b0d856c000914
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: eace6afed224e57708b9fd9c7e11542c480b7562
4+
refs/heads/snap-stage3: 631896dc1996d239a532b0ce02d5fe886660149e
55
refs/heads/try: 08f6380a9f0b866796080094f44fe25ea5636547
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ Examples of integer literals of various forms:
485485
```
486486
123is; // type isize
487487
123us; // type usize
488-
123_us // type usize
488+
123_us; // type usize
489489
0xff_u8; // type u8
490490
0o70_i16; // type i16
491491
0b1111_1111_1001_0000_i32; // type i32
@@ -1500,11 +1500,11 @@ Constants should in general be preferred over statics, unless large amounts of
15001500
data are being stored, or single-address and mutability properties are required.
15011501

15021502
```
1503-
use std::sync::atomic::{AtomicUint, Ordering, ATOMIC_USIZE_INIT};;
1503+
use std::sync::atomic::{AtomicUsize, Ordering, ATOMIC_USIZE_INIT};
15041504
15051505
// Note that ATOMIC_USIZE_INIT is a *const*, but it may be used to initialize a
15061506
// static. This static can be modified, so it is not placed in read-only memory.
1507-
static COUNTER: AtomicUint = ATOMIC_USIZE_INIT;
1507+
static COUNTER: AtomicUsize = ATOMIC_USIZE_INIT;
15081508
15091509
// This table is a candidate to be placed in read-only memory.
15101510
static TABLE: &'static [usize] = &[1, 2, 3, /* ... */];
@@ -3437,8 +3437,8 @@ fn is_symmetric(list: &[u32]) -> bool {
34373437
}
34383438
34393439
fn main() {
3440-
let sym = &[0us, 1, 4, 2, 4, 1, 0];
3441-
let not_sym = &[0us, 1, 7, 2, 4, 1, 0];
3440+
let sym = &[0, 1, 4, 2, 4, 1, 0];
3441+
let not_sym = &[0, 1, 7, 2, 4, 1, 0];
34423442
assert!(is_symmetric(sym));
34433443
assert!(!is_symmetric(not_sym));
34443444
}

branches/snap-stage3/src/libsyntax/parse/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,8 @@ pub fn file_to_filemap(sess: &ParseSess, path: &Path, spanopt: Option<Span>)
253253
let bytes = match File::open(path).read_to_end() {
254254
Ok(bytes) => bytes,
255255
Err(e) => {
256-
let error_msg = e.desc;
257256
err(&format!("couldn't read {:?}: {}",
258-
path.display(),
259-
error_msg)[]);
257+
path.display(), e)[]);
260258
unreachable!()
261259
}
262260
};

0 commit comments

Comments
 (0)