File tree Expand file tree Collapse file tree 3 files changed +11
-15
lines changed Expand file tree Collapse file tree 3 files changed +11
-15
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: fd9c9ac91210cfce32da8d7f38b74072bac4ae3b
2
+ refs/heads/master: b516913a5d46dc32d47b7846bb510fc029e660b3
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
Original file line number Diff line number Diff line change @@ -3,14 +3,12 @@ enum int_wrapper {
3
3
}
4
4
5
5
fn main ( ) {
6
- unsafe {
7
- let x = 3 ;
8
- let y = int_wrapper_ctor ( & x) ;
9
- let z : & int ;
10
- alt y {
11
- int_wrapper_ctor( zz) { z = zz; }
12
- }
13
- log ( debug, * z) ;
6
+ let x = 3 ;
7
+ let y = int_wrapper_ctor ( & x) ;
8
+ let z : & int ;
9
+ alt y {
10
+ int_wrapper_ctor( zz) { z = zz; }
14
11
}
12
+ log ( debug, * z) ;
15
13
}
16
14
Original file line number Diff line number Diff line change 1
1
fn main ( ) {
2
- unsafe {
3
- let x: int = 3 ;
4
- let y: & mutable int = & mutable x;
5
- * y = 5 ;
6
- log ( debug, * y) ;
7
- }
2
+ let x: int = 3 ;
3
+ let y: & mutable int = & mutable x;
4
+ * y = 5 ;
5
+ log ( debug, * y) ;
8
6
}
9
7
10
8
You can’t perform that action at this time.
0 commit comments