@@ -1721,6 +1721,8 @@ fn namespaced_invalid_feature() {
1721
1721
. file (
1722
1722
"Cargo.toml" ,
1723
1723
r#"
1724
+ cargo-features = ["namespaced-features"]
1725
+
1724
1726
[project]
1725
1727
name = "foo"
1726
1728
version = "0.0.1"
@@ -1735,7 +1737,7 @@ fn namespaced_invalid_feature() {
1735
1737
. build ( ) ;
1736
1738
1737
1739
assert_that (
1738
- p. cargo ( "build" ) ,
1740
+ p. cargo ( "build" ) . masquerade_as_nightly_cargo ( ) ,
1739
1741
execs ( ) . with_status ( 101 ) . with_stderr (
1740
1742
"\
1741
1743
[ERROR] failed to parse manifest at `[..]`
@@ -1753,6 +1755,8 @@ fn namespaced_invalid_dependency() {
1753
1755
. file (
1754
1756
"Cargo.toml" ,
1755
1757
r#"
1758
+ cargo-features = ["namespaced-features"]
1759
+
1756
1760
[project]
1757
1761
name = "foo"
1758
1762
version = "0.0.1"
@@ -1767,7 +1771,7 @@ fn namespaced_invalid_dependency() {
1767
1771
. build ( ) ;
1768
1772
1769
1773
assert_that (
1770
- p. cargo ( "build" ) ,
1774
+ p. cargo ( "build" ) . masquerade_as_nightly_cargo ( ) ,
1771
1775
execs ( ) . with_status ( 101 ) . with_stderr (
1772
1776
"\
1773
1777
[ERROR] failed to parse manifest at `[..]`
@@ -1785,6 +1789,8 @@ fn namespaced_non_optional_dependency() {
1785
1789
. file (
1786
1790
"Cargo.toml" ,
1787
1791
r#"
1792
+ cargo-features = ["namespaced-features"]
1793
+
1788
1794
[project]
1789
1795
name = "foo"
1790
1796
version = "0.0.1"
@@ -1802,7 +1808,7 @@ fn namespaced_non_optional_dependency() {
1802
1808
. build ( ) ;
1803
1809
1804
1810
assert_that (
1805
- p. cargo ( "build" ) ,
1811
+ p. cargo ( "build" ) . masquerade_as_nightly_cargo ( ) ,
1806
1812
execs ( ) . with_status ( 101 ) . with_stderr (
1807
1813
"\
1808
1814
[ERROR] failed to parse manifest at `[..]`
@@ -1821,6 +1827,8 @@ fn namespaced_implicit_feature() {
1821
1827
. file (
1822
1828
"Cargo.toml" ,
1823
1829
r#"
1830
+ cargo-features = ["namespaced-features"]
1831
+
1824
1832
[project]
1825
1833
name = "foo"
1826
1834
version = "0.0.1"
@@ -1837,7 +1845,10 @@ fn namespaced_implicit_feature() {
1837
1845
. file ( "src/main.rs" , "fn main() {}" )
1838
1846
. build ( ) ;
1839
1847
1840
- assert_that ( p. cargo ( "build" ) , execs ( ) . with_status ( 0 ) ) ;
1848
+ assert_that (
1849
+ p. cargo ( "build" ) . masquerade_as_nightly_cargo ( ) ,
1850
+ execs ( ) . with_status ( 0 ) ,
1851
+ ) ;
1841
1852
}
1842
1853
1843
1854
#[ test]
@@ -1846,6 +1857,8 @@ fn namespaced_shadowed_dep() {
1846
1857
. file (
1847
1858
"Cargo.toml" ,
1848
1859
r#"
1860
+ cargo-features = ["namespaced-features"]
1861
+
1849
1862
[project]
1850
1863
name = "foo"
1851
1864
version = "0.0.1"
@@ -1863,7 +1876,7 @@ fn namespaced_shadowed_dep() {
1863
1876
. build ( ) ;
1864
1877
1865
1878
assert_that (
1866
- p. cargo ( "build" ) ,
1879
+ p. cargo ( "build" ) . masquerade_as_nightly_cargo ( ) ,
1867
1880
execs ( ) . with_status ( 101 ) . with_stderr (
1868
1881
"\
1869
1882
[ERROR] failed to parse manifest at `[..]`
@@ -1882,6 +1895,8 @@ fn namespaced_shadowed_non_optional() {
1882
1895
. file (
1883
1896
"Cargo.toml" ,
1884
1897
r#"
1898
+ cargo-features = ["namespaced-features"]
1899
+
1885
1900
[project]
1886
1901
name = "foo"
1887
1902
version = "0.0.1"
@@ -1899,7 +1914,7 @@ fn namespaced_shadowed_non_optional() {
1899
1914
. build ( ) ;
1900
1915
1901
1916
assert_that (
1902
- p. cargo ( "build" ) ,
1917
+ p. cargo ( "build" ) . masquerade_as_nightly_cargo ( ) ,
1903
1918
execs ( ) . with_status ( 101 ) . with_stderr (
1904
1919
"\
1905
1920
[ERROR] failed to parse manifest at `[..]`
@@ -1919,6 +1934,8 @@ fn namespaced_implicit_non_optional() {
1919
1934
. file (
1920
1935
"Cargo.toml" ,
1921
1936
r#"
1937
+ cargo-features = ["namespaced-features"]
1938
+
1922
1939
[project]
1923
1940
name = "foo"
1924
1941
version = "0.0.1"
@@ -1936,7 +1953,7 @@ fn namespaced_implicit_non_optional() {
1936
1953
. build ( ) ;
1937
1954
1938
1955
assert_that (
1939
- p. cargo ( "build" ) ,
1956
+ p. cargo ( "build" ) . masquerade_as_nightly_cargo ( ) ,
1940
1957
execs ( ) . with_status ( 101 ) . with_stderr (
1941
1958
"\
1942
1959
[ERROR] failed to parse manifest at `[..]`
@@ -1955,6 +1972,8 @@ fn namespaced_same_name() {
1955
1972
. file (
1956
1973
"Cargo.toml" ,
1957
1974
r#"
1975
+ cargo-features = ["namespaced-features"]
1976
+
1958
1977
[project]
1959
1978
name = "foo"
1960
1979
version = "0.0.1"
@@ -1971,5 +1990,8 @@ fn namespaced_same_name() {
1971
1990
. file ( "src/main.rs" , "fn main() {}" )
1972
1991
. build ( ) ;
1973
1992
1974
- assert_that ( p. cargo ( "build" ) , execs ( ) . with_status ( 0 ) ) ;
1993
+ assert_that (
1994
+ p. cargo ( "build" ) . masquerade_as_nightly_cargo ( ) ,
1995
+ execs ( ) . with_status ( 0 ) ,
1996
+ ) ;
1975
1997
}
0 commit comments