File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,9 @@ fn main() {
1414 let x = S . other ( S . id ( ) ) ;
1515}
1616
17- // no_mangle and extern C to make sure this gets instantiated even in an
18- // executable.
17+ // no_mangle to make sure this gets instantiated even in an executable.
1918#[ no_mangle]
20- pub extern "C" fn test ( ) {
19+ pub fn test ( ) {
2120 let u = S ;
2221 let mut v = S ;
2322 drop ( v) ;
Original file line number Diff line number Diff line change @@ -18,15 +18,19 @@ fn guard2(_:i32) -> bool {
1818 true
1919}
2020
21- fn full_tested_match ( ) {
21+ // no_mangle to make sure this gets instantiated even in an executable.
22+ #[ no_mangle]
23+ pub fn full_tested_match ( ) {
2224 let _ = match Some ( 42 ) {
2325 Some ( x) if guard ( ) => ( 1 , x) ,
2426 Some ( y) => ( 2 , y) ,
2527 None => ( 3 , 3 ) ,
2628 } ;
2729}
2830
29- fn full_tested_match2 ( ) {
31+ // no_mangle to make sure this gets instantiated even in an executable.
32+ #[ no_mangle]
33+ pub fn full_tested_match2 ( ) {
3034 let _ = match Some ( 42 ) {
3135 Some ( x) if guard ( ) => ( 1 , x) ,
3236 None => ( 3 , 3 ) ,
You can’t perform that action at this time.
0 commit comments