mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Migrate trailing calls to project
with an argument
.. in docs, commented code & tests targetting non-macos.
This commit is contained in:
parent
7fe2fbc8a3
commit
6da2ada26d
@ -245,7 +245,7 @@ fn custom_build_script_wrong_rustc_flags() {
|
|||||||
/*
|
/*
|
||||||
#[test]
|
#[test]
|
||||||
fn custom_build_script_rustc_flags() {
|
fn custom_build_script_rustc_flags() {
|
||||||
let p = project("foo")
|
let p = project()
|
||||||
.file("Cargo.toml", r#"
|
.file("Cargo.toml", r#"
|
||||||
[project]
|
[project]
|
||||||
|
|
||||||
|
@ -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:
|
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("Cargo.toml", &basic_bin_manifest("foo"))
|
||||||
.file("src/main.rs", r#"fn main() { println!("hi!"); }"#)
|
.file("src/main.rs", r#"fn main() { println!("hi!"); }"#)
|
||||||
.build();
|
.build();
|
||||||
|
@ -450,7 +450,7 @@ fn any_ok() {
|
|||||||
#[test]
|
#[test]
|
||||||
#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
|
#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
|
||||||
fn cfg_looks_at_rustflags_for_target() {
|
fn cfg_looks_at_rustflags_for_target() {
|
||||||
let p = project("foo")
|
let p = project()
|
||||||
.file(
|
.file(
|
||||||
"Cargo.toml",
|
"Cargo.toml",
|
||||||
r#"
|
r#"
|
||||||
|
@ -1483,7 +1483,7 @@ fn doc_workspace_open_help_message() {
|
|||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(any(target_os = "windows", target_os = "macos")))]
|
#[cfg(not(any(target_os = "windows", target_os = "macos")))]
|
||||||
fn doc_workspace_open_different_library_and_package_names() {
|
fn doc_workspace_open_different_library_and_package_names() {
|
||||||
let p = project("foo")
|
let p = project()
|
||||||
.file(
|
.file(
|
||||||
"Cargo.toml",
|
"Cargo.toml",
|
||||||
r#"
|
r#"
|
||||||
@ -1516,7 +1516,7 @@ fn doc_workspace_open_different_library_and_package_names() {
|
|||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(any(target_os = "windows", target_os = "macos")))]
|
#[cfg(not(any(target_os = "windows", target_os = "macos")))]
|
||||||
fn doc_workspace_open_binary() {
|
fn doc_workspace_open_binary() {
|
||||||
let p = project("foo")
|
let p = project()
|
||||||
.file(
|
.file(
|
||||||
"Cargo.toml",
|
"Cargo.toml",
|
||||||
r#"
|
r#"
|
||||||
@ -1550,7 +1550,7 @@ fn doc_workspace_open_binary() {
|
|||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(any(target_os = "windows", target_os = "macos")))]
|
#[cfg(not(any(target_os = "windows", target_os = "macos")))]
|
||||||
fn doc_workspace_open_binary_and_library() {
|
fn doc_workspace_open_binary_and_library() {
|
||||||
let p = project("foo")
|
let p = project()
|
||||||
.file(
|
.file(
|
||||||
"Cargo.toml",
|
"Cargo.toml",
|
||||||
r#"
|
r#"
|
||||||
|
@ -255,7 +255,7 @@ fn features() {
|
|||||||
#[test]
|
#[test]
|
||||||
#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
|
#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
|
||||||
fn rustdoc_target() {
|
fn rustdoc_target() {
|
||||||
let p = project("foo")
|
let p = project()
|
||||||
.file(
|
.file(
|
||||||
"Cargo.toml",
|
"Cargo.toml",
|
||||||
r#"
|
r#"
|
||||||
|
@ -1947,7 +1947,7 @@ fn glob_syntax() {
|
|||||||
/*FIXME: This fails because of how workspace.exclude and workspace.members are working.
|
/*FIXME: This fails because of how workspace.exclude and workspace.members are working.
|
||||||
#[test]
|
#[test]
|
||||||
fn glob_syntax_2() {
|
fn glob_syntax_2() {
|
||||||
let p = project("foo")
|
let p = project()
|
||||||
.file("Cargo.toml", r#"
|
.file("Cargo.toml", r#"
|
||||||
[project]
|
[project]
|
||||||
name = "foo"
|
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.
|
/*FIXME: This fails because of how workspace.exclude and workspace.members are working.
|
||||||
#[test]
|
#[test]
|
||||||
fn include_and_exclude() {
|
fn include_and_exclude() {
|
||||||
let p = project("foo")
|
let p = project()
|
||||||
.file("Cargo.toml", r#"
|
.file("Cargo.toml", r#"
|
||||||
[workspace]
|
[workspace]
|
||||||
members = ["foo"]
|
members = ["foo"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user