Skip to content

Commit 0b51711

Browse files
committed
Test fixes and rebase conflicts
1 parent a3e8f41 commit 0b51711

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

src/libnative/io/c_windows.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use libc;
1717
pub const WSADESCRIPTION_LEN: uint = 256;
1818
pub const WSASYS_STATUS_LEN: uint = 128;
1919
pub const FIONBIO: libc::c_long = 0x8004667e;
20-
static FD_SETSIZE: uint = 64;
20+
pub const FD_SETSIZE: uint = 64;
2121
pub const MSG_DONTWAIT: libc::c_int = 0;
2222
pub const ERROR_ILLEGAL_CHARACTER: libc::c_int = 582;
2323
pub const ENABLE_ECHO_INPUT: libc::DWORD = 0x4;

src/librustrt/mutex.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -364,20 +364,20 @@ mod imp {
364364
use libc;
365365

366366
#[cfg(target_arch = "x86_64")]
367-
static __PTHREAD_MUTEX_SIZE__: uint = 56;
367+
const __PTHREAD_MUTEX_SIZE__: uint = 56;
368368
#[cfg(target_arch = "x86_64")]
369-
static __PTHREAD_COND_SIZE__: uint = 40;
369+
const __PTHREAD_COND_SIZE__: uint = 40;
370370
#[cfg(target_arch = "x86")]
371-
static __PTHREAD_MUTEX_SIZE__: uint = 40;
371+
const __PTHREAD_MUTEX_SIZE__: uint = 40;
372372
#[cfg(target_arch = "x86")]
373-
static __PTHREAD_COND_SIZE__: uint = 24;
373+
const __PTHREAD_COND_SIZE__: uint = 24;
374374
#[cfg(target_arch = "arm")]
375-
static __PTHREAD_MUTEX_SIZE__: uint = 40;
375+
const __PTHREAD_MUTEX_SIZE__: uint = 40;
376376
#[cfg(target_arch = "arm")]
377-
static __PTHREAD_COND_SIZE__: uint = 24;
377+
const __PTHREAD_COND_SIZE__: uint = 24;
378378

379-
static _PTHREAD_MUTEX_SIG_INIT: libc::c_long = 0x32AAABA7;
380-
static _PTHREAD_COND_SIG_INIT: libc::c_long = 0x3CB0B1BB;
379+
const _PTHREAD_MUTEX_SIG_INIT: libc::c_long = 0x32AAABA7;
380+
const _PTHREAD_COND_SIG_INIT: libc::c_long = 0x3CB0B1BB;
381381

382382
#[repr(C)]
383383
pub struct pthread_mutex_t {

src/libstd/rt/backtrace.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ pub fn log_enabled() -> bool {
4545
val == 2
4646
}
4747

48-
#[cfg(target_word_size = "64")] static HEX_WIDTH: uint = 18;
49-
#[cfg(target_word_size = "32")] static HEX_WIDTH: uint = 10;
48+
#[cfg(target_word_size = "64")] const HEX_WIDTH: uint = 18;
49+
#[cfg(target_word_size = "32")] const HEX_WIDTH: uint = 10;
5050

5151
// All rust symbols are in theory lists of "::"-separated identifiers. Some
5252
// assemblers, however, can't handle these characters in symbol names. To get
@@ -273,7 +273,7 @@ mod imp {
273273

274274
try!(writeln!(w, "stack backtrace:"));
275275
// 100 lines should be enough
276-
static SIZE: uint = 100;
276+
const SIZE: uint = 100;
277277
let mut buf: [*mut libc::c_void, ..SIZE] = unsafe {mem::zeroed()};
278278
let cnt = unsafe { backtrace(buf.as_mut_ptr(), SIZE as libc::c_int) as uint};
279279

@@ -697,10 +697,10 @@ mod imp {
697697
*mut libc::c_void, *mut libc::c_void,
698698
*mut libc::c_void, *mut libc::c_void) -> libc::BOOL;
699699

700-
static MAX_SYM_NAME: uint = 2000;
701-
static IMAGE_FILE_MACHINE_I386: libc::DWORD = 0x014c;
702-
static IMAGE_FILE_MACHINE_IA64: libc::DWORD = 0x0200;
703-
static IMAGE_FILE_MACHINE_AMD64: libc::DWORD = 0x8664;
700+
const MAX_SYM_NAME: uint = 2000;
701+
const IMAGE_FILE_MACHINE_I386: libc::DWORD = 0x014c;
702+
const IMAGE_FILE_MACHINE_IA64: libc::DWORD = 0x0200;
703+
const IMAGE_FILE_MACHINE_AMD64: libc::DWORD = 0x8664;
704704

705705
#[repr(C)]
706706
struct SYMBOL_INFO {
@@ -772,7 +772,7 @@ mod imp {
772772
mod arch {
773773
use libc;
774774

775-
static MAXIMUM_SUPPORTED_EXTENSION: uint = 512;
775+
const MAXIMUM_SUPPORTED_EXTENSION: uint = 512;
776776

777777
#[repr(C)]
778778
pub struct CONTEXT {

0 commit comments

Comments
 (0)