Migrate trailing calls to project with an argument

.. in docs, commented code & tests targetting non-macos.
This commit is contained in:
Dale Wijnand 2018-07-20 15:25:51 +01:00
parent 7fe2fbc8a3
commit 6da2ada26d
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
6 changed files with 9 additions and 9 deletions

View File

@ -245,7 +245,7 @@ fn custom_build_script_wrong_rustc_flags() {
/*
#[test]
fn custom_build_script_rustc_flags() {
let p = project("foo")
let p = project()
.file("Cargo.toml", r#"
[project]

View File

@ -10,7 +10,7 @@ checking the result. Projects are created with the `ProjectBuilder` where you
specify some files to create. The general form looks like this:
```
let p = project("foo")
let p = project()
.file("Cargo.toml", &basic_bin_manifest("foo"))
.file("src/main.rs", r#"fn main() { println!("hi!"); }"#)
.build();

View File

@ -450,7 +450,7 @@ fn any_ok() {
#[test]
#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
fn cfg_looks_at_rustflags_for_target() {
let p = project("foo")
let p = project()
.file(
"Cargo.toml",
r#"

View File

@ -1483,7 +1483,7 @@ fn doc_workspace_open_help_message() {
#[test]
#[cfg(not(any(target_os = "windows", target_os = "macos")))]
fn doc_workspace_open_different_library_and_package_names() {
let p = project("foo")
let p = project()
.file(
"Cargo.toml",
r#"
@ -1516,7 +1516,7 @@ fn doc_workspace_open_different_library_and_package_names() {
#[test]
#[cfg(not(any(target_os = "windows", target_os = "macos")))]
fn doc_workspace_open_binary() {
let p = project("foo")
let p = project()
.file(
"Cargo.toml",
r#"
@ -1550,7 +1550,7 @@ fn doc_workspace_open_binary() {
#[test]
#[cfg(not(any(target_os = "windows", target_os = "macos")))]
fn doc_workspace_open_binary_and_library() {
let p = project("foo")
let p = project()
.file(
"Cargo.toml",
r#"

View File

@ -255,7 +255,7 @@ fn features() {
#[test]
#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
fn rustdoc_target() {
let p = project("foo")
let p = project()
.file(
"Cargo.toml",
r#"

View File

@ -1947,7 +1947,7 @@ fn glob_syntax() {
/*FIXME: This fails because of how workspace.exclude and workspace.members are working.
#[test]
fn glob_syntax_2() {
let p = project("foo")
let p = project()
.file("Cargo.toml", r#"
[project]
name = "foo"
@ -2218,7 +2218,7 @@ fn dont_recurse_out_of_cargo_home() {
/*FIXME: This fails because of how workspace.exclude and workspace.members are working.
#[test]
fn include_and_exclude() {
let p = project("foo")
let p = project()
.file("Cargo.toml", r#"
[workspace]
members = ["foo"]