Skip to content

Commit 631896d

Browse files
committedJan 20, 2015
Test fixes and rebase conflicts
1 parent eace6af commit 631896d

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed
 

‎src/doc/reference.md

+5-5
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
}

‎src/libsyntax/parse/mod.rs

+1-3
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)