File tree 4 files changed +18
-7
lines changed
4 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 1
- #![ feature( fs_try_exists) ]
2
-
3
1
mod tests_fs;
4
2
mod tests_pthread;
5
3
mod tests_tcp;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ mod tests {
6
6
7
7
impl Drop for FsScope {
8
8
fn drop ( & mut self ) {
9
- if fs:: try_exists ( "ux0:/data/.rust_test" ) . unwrap_or ( false ) {
9
+ if fs:: exists ( "ux0:/data/.rust_test" ) . unwrap_or ( false ) {
10
10
fs:: remove_dir_all ( "ux0:/data/.rust_test" ) . expect ( "unable to cleanup" ) ;
11
11
}
12
12
}
@@ -54,7 +54,7 @@ mod tests {
54
54
assert ! ( & data == "contents" , "invalid file contents" ) ;
55
55
56
56
assert ! (
57
- fs:: try_exists ( "ux0:/data/.rust_test/file" ) . unwrap( ) ,
57
+ fs:: exists ( "ux0:/data/.rust_test/file" ) . unwrap( ) ,
58
58
"file does not exist" ,
59
59
) ;
60
60
@@ -69,7 +69,7 @@ mod tests {
69
69
70
70
fs:: remove_file ( "ux0:/data/.rust_test/file" ) . expect ( "unable to delete file" ) ;
71
71
assert ! (
72
- !fs:: try_exists ( "ux0:/data/.rust_test/file" ) . unwrap( ) ,
72
+ !fs:: exists ( "ux0:/data/.rust_test/file" ) . unwrap( ) ,
73
73
"file exists, but should not" ,
74
74
) ;
75
75
Original file line number Diff line number Diff line change
1
+ // These linker flags are only necessary with Northfear SDL2 fork
2
+ #[ link( name = "SDL2" , kind = "static" ) ]
3
+ #[ link( name = "vitaGL" , kind = "static" ) ]
4
+ #[ link( name = "vitashark" , kind = "static" ) ]
5
+ #[ link( name = "SceShaccCg_stub" , kind = "static" ) ]
6
+ #[ link( name = "mathneon" , kind = "static" ) ]
7
+ #[ link( name = "SceShaccCgExt" , kind = "static" ) ]
8
+ #[ link( name = "taihen_stub" , kind = "static" ) ]
9
+ #[ link( name = "SceKernelDmacMgr_stub" , kind = "static" ) ]
10
+ #[ link( name = "SceIme_stub" , kind = "static" ) ]
11
+ extern "C" { }
12
+
13
+
1
14
use crate :: game_of_life:: { PLAYGROUND_HEIGHT , PLAYGROUND_WIDTH , SQUARE_SIZE } ;
2
15
use sdl2:: keyboard:: Keycode ;
3
16
use sdl2:: mouse:: MouseButton ;
Original file line number Diff line number Diff line change 1
1
use std:: backtrace:: Backtrace ;
2
2
use std:: fmt:: Write ;
3
- use std:: panic:: { self , PanicInfo } ;
3
+ use std:: panic:: { self , PanicHookInfo } ;
4
4
use std:: thread;
5
5
use std:: time:: Duration ;
6
6
@@ -25,7 +25,7 @@ pub fn main() {
25
25
thread:: sleep ( Duration :: from_secs ( 5 ) ) ;
26
26
}
27
27
28
- fn custom_panic_hook ( info : & PanicInfo < ' _ > ) {
28
+ fn custom_panic_hook ( info : & PanicHookInfo < ' _ > ) {
29
29
// The current implementation always returns `Some`.
30
30
let location = info. location ( ) . unwrap ( ) ;
31
31
You can’t perform that action at this time.
0 commit comments