Skip to content

Commit dabfb34

Browse files
committed
---
yaml --- r: 176574 b: refs/heads/tmp c: 631896d h: refs/heads/master v: v3
1 parent 0efb612 commit dabfb34

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
@@ -34,4 +34,4 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 44a287e6eb22ec3c2a687fc156813577464017f7
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: eace6afed224e57708b9fd9c7e11542c480b7562
37+
refs/heads/tmp: 631896dc1996d239a532b0ce02d5fe886660149e

branches/tmp/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/tmp/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)