1
Fork 0

Test fixes

This commit is contained in:
Alex Crichton 2018-03-23 07:46:20 -07:00
parent 3ebe12eb3e
commit 0e6cd8b61a
5 changed files with 9 additions and 1 deletions

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// ignore-pretty
#![feature(raw_identifiers)]
use std::mem;

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// ignore-pretty
#![feature(raw_identifiers)]
fn r#fn(r#match: u32) -> u32 {

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// ignore-pretty
#![feature(raw_identifiers)]
#[derive(Debug, PartialEq, Eq)]

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// ignore-pretty
#![feature(decl_macro)]
#![feature(raw_identifiers)]

View file

@ -2426,7 +2426,7 @@ impl<'test> TestCx<'test> {
// compiler flags set in the test cases:
cmd.env_remove("RUSTFLAGS");
if self.config.target.contains("msvc") {
if self.config.target.contains("msvc") && self.config.cc != "" {
// We need to pass a path to `lib.exe`, so assume that `cc` is `cl.exe`
// and that `lib.exe` lives next to it.
let lib = Path::new(&self.config.cc).parent().unwrap().join("lib.exe");