File tree 4 files changed +10
-17
lines changed
4 files changed +10
-17
lines changed Original file line number Diff line number Diff line change 48
48
<< : *job-linux-16c
49
49
- name : x86_64-gnu-tools
50
50
<< : *job-linux-16c
51
+ - name : x86_64-msvc
52
+ env :
53
+ RUST_CONFIGURE_ARGS : --build=x86_64-pc-windows-msvc --enable-profiler
54
+ SCRIPT : make ci-msvc
55
+ << : *job-windows-8c
Original file line number Diff line number Diff line change
1
+ // Ensure that env::vars() does not panic if environ is null.
2
+ // Regression test for rust-lang/rust#53200
1
3
//@ run-pass
2
4
3
- #![ allow( unused_imports) ]
4
-
5
- //@ ignore-windows
6
-
7
- // issue-53200
8
-
9
5
#![ feature( rustc_private) ]
10
- extern crate libc;
11
-
12
- use std:: env;
13
6
14
7
// FIXME: more platforms?
15
8
#[ cfg( target_os = "linux" ) ]
16
9
fn main ( ) {
10
+ extern crate libc;
17
11
unsafe { libc:: clearenv ( ) ; }
18
- assert_eq ! ( env:: vars( ) . count( ) , 0 ) ;
12
+ assert_eq ! ( std :: env:: vars( ) . count( ) , 0 ) ;
19
13
}
20
14
21
15
#[ cfg( not( target_os = "linux" ) ) ]
Original file line number Diff line number Diff line change 8
8
//@ ignore-fuchsia must translate zircon signal to SIGABRT, FIXME (#58590)
9
9
//@ ignore-nto no stack overflow handler used (no alternate stack available)
10
10
11
- #![ feature( core_intrinsics) ]
12
11
#![ feature( rustc_private) ]
13
12
14
13
#[ cfg( unix) ]
15
14
extern crate libc;
16
15
17
16
use std:: env;
17
+ use std:: hint:: black_box;
18
18
use std:: process:: Command ;
19
19
use std:: thread;
20
20
21
- // Inlining to avoid llvm turning the recursive functions into tail calls,
22
- // which doesn't consume stack.
23
- #[ inline( always) ]
24
- pub fn black_box < T > ( dummy : T ) { std:: intrinsics:: black_box ( dummy) ; }
25
-
26
21
fn silent_recurse ( ) {
27
22
let buf = [ 0u8 ; 1000 ] ;
28
23
black_box ( buf) ;
Original file line number Diff line number Diff line change 20
20
//@ error-pattern: Location is heap block of size 4
21
21
//@ error-pattern: allocated by main thread
22
22
23
- #![ feature( raw_ref_op) ]
24
23
#![ feature( rustc_private) ]
25
24
extern crate libc;
26
25
You can’t perform that action at this time.
0 commit comments