@@ -45,8 +45,8 @@ pub fn log_enabled() -> bool {
45
45
val == 2
46
46
}
47
47
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 ;
50
50
51
51
// All rust symbols are in theory lists of "::"-separated identifiers. Some
52
52
// assemblers, however, can't handle these characters in symbol names. To get
@@ -273,7 +273,7 @@ mod imp {
273
273
274
274
try!( writeln ! ( w, "stack backtrace:" ) ) ;
275
275
// 100 lines should be enough
276
- static SIZE : uint = 100 ;
276
+ const SIZE : uint = 100 ;
277
277
let mut buf: [ * mut libc:: c_void , ..SIZE ] = unsafe { mem:: zeroed ( ) } ;
278
278
let cnt = unsafe { backtrace ( buf. as_mut_ptr ( ) , SIZE as libc:: c_int ) as uint } ;
279
279
@@ -697,10 +697,10 @@ mod imp {
697
697
* mut libc:: c_void , * mut libc:: c_void ,
698
698
* mut libc:: c_void , * mut libc:: c_void ) -> libc:: BOOL ;
699
699
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 ;
704
704
705
705
#[ repr( C ) ]
706
706
struct SYMBOL_INFO {
@@ -772,7 +772,7 @@ mod imp {
772
772
mod arch {
773
773
use libc;
774
774
775
- static MAXIMUM_SUPPORTED_EXTENSION : uint = 512 ;
775
+ const MAXIMUM_SUPPORTED_EXTENSION : uint = 512 ;
776
776
777
777
#[ repr( C ) ]
778
778
pub struct CONTEXT {
0 commit comments