Skip to content

Commit 934f92d

Browse files
committed
Enable MSVC in CI
1 parent dce6db1 commit 934f92d

File tree

4 files changed

+10
-17
lines changed

4 files changed

+10
-17
lines changed

src/ci/github-actions/jobs.yml

+5
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,8 @@ pr:
4848
<<: *job-linux-16c
4949
- name: x86_64-gnu-tools
5050
<<: *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

tests/ui/env-null-vars.rs

+4-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
1+
// Ensure that env::vars() does not panic if environ is null.
2+
// Regression test for rust-lang/rust#53200
13
//@ run-pass
24

3-
#![allow(unused_imports)]
4-
5-
//@ ignore-windows
6-
7-
// issue-53200
8-
95
#![feature(rustc_private)]
10-
extern crate libc;
11-
12-
use std::env;
136

147
// FIXME: more platforms?
158
#[cfg(target_os = "linux")]
169
fn main() {
10+
extern crate libc;
1711
unsafe { libc::clearenv(); }
18-
assert_eq!(env::vars().count(), 0);
12+
assert_eq!(std::env::vars().count(), 0);
1913
}
2014

2115
#[cfg(not(target_os = "linux"))]

tests/ui/runtime/out-of-stack.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,16 @@
88
//@ ignore-fuchsia must translate zircon signal to SIGABRT, FIXME (#58590)
99
//@ ignore-nto no stack overflow handler used (no alternate stack available)
1010

11-
#![feature(core_intrinsics)]
1211
#![feature(rustc_private)]
1312

1413
#[cfg(unix)]
1514
extern crate libc;
1615

1716
use std::env;
17+
use std::hint::black_box;
1818
use std::process::Command;
1919
use std::thread;
2020

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-
2621
fn silent_recurse() {
2722
let buf = [0u8; 1000];
2823
black_box(buf);

tests/ui/sanitizer/thread.rs

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
//@ error-pattern: Location is heap block of size 4
2121
//@ error-pattern: allocated by main thread
2222

23-
#![feature(raw_ref_op)]
2423
#![feature(rustc_private)]
2524
extern crate libc;
2625

0 commit comments

Comments
 (0)