@@ -103,14 +103,12 @@ fn cargo_fail_with_no_stderr() {
103
103
fn cargo_compile_incremental ( ) {
104
104
let p = project ( )
105
105
. file ( "Cargo.toml" , & basic_bin_manifest ( "foo" ) )
106
- . file ( "src/foo .rs" , & main_file ( r#""i am foo""# , & [ ] ) )
106
+ . file ( "src/main .rs" , & main_file ( r#""i am foo""# , & [ ] ) )
107
107
. build ( ) ;
108
108
109
109
p. cargo ( "build -v" )
110
110
. env ( "CARGO_INCREMENTAL" , "1" )
111
111
. with_stderr_data ( str![ [ r#"
112
- [WARNING] path `src/foo.rs` was erroneously implicitly accepted for binary `foo`,
113
- please set bin.path in Cargo.toml
114
112
[COMPILING] foo v0.5.0 ([ROOT]/foo)
115
113
[RUNNING] `rustc [..] -C incremental=[ROOT]/foo/target/debug/incremental[..]`
116
114
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
@@ -121,8 +119,6 @@ please set bin.path in Cargo.toml
121
119
p. cargo ( "test -v" )
122
120
. env ( "CARGO_INCREMENTAL" , "1" )
123
121
. with_stderr_data ( str![ [ r#"
124
- [WARNING] path `src/foo.rs` was erroneously implicitly accepted for binary `foo`,
125
- please set bin.path in Cargo.toml
126
122
[COMPILING] foo v0.5.0 ([ROOT]/foo)
127
123
[RUNNING] `rustc [..] -C incremental=[ROOT]/foo/target/debug/incremental[..]`
128
124
[FINISHED] `test` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
@@ -819,14 +815,12 @@ fn cargo_compile_with_lowercase_cargo_toml() {
819
815
fn cargo_compile_with_invalid_code ( ) {
820
816
let p = project ( )
821
817
. file ( "Cargo.toml" , & basic_bin_manifest ( "foo" ) )
822
- . file ( "src/foo .rs" , "invalid rust code!" )
818
+ . file ( "src/main .rs" , "invalid rust code!" )
823
819
. build ( ) ;
824
820
825
821
p. cargo ( "build" )
826
822
. with_status ( 101 )
827
823
. with_stderr_data ( str![ [ r#"
828
- [WARNING] path `src/foo.rs` was erroneously implicitly accepted for binary `foo`,
829
- please set bin.path in Cargo.toml
830
824
[COMPILING] foo v0.5.0 ([ROOT]/foo)
831
825
[ERROR] [..]
832
826
...
@@ -879,13 +873,11 @@ fn cargo_compile_with_invalid_code_in_deps() {
879
873
fn cargo_compile_with_warnings_in_the_root_package ( ) {
880
874
let p = project ( )
881
875
. file ( "Cargo.toml" , & basic_bin_manifest ( "foo" ) )
882
- . file ( "src/foo .rs" , "fn main() {} fn dead() {}" )
876
+ . file ( "src/main .rs" , "fn main() {} fn dead() {}" )
883
877
. build ( ) ;
884
878
885
879
p. cargo ( "build" )
886
880
. with_stderr_data ( str![ [ r#"
887
- [WARNING] path `src/foo.rs` was erroneously implicitly accepted for binary `foo`,
888
- please set bin.path in Cargo.toml
889
881
[COMPILING] foo v0.5.0 ([ROOT]/foo)
890
882
[WARNING] [..]dead[..]
891
883
...
@@ -917,7 +909,7 @@ fn cargo_compile_with_warnings_in_a_dep_package() {
917
909
name = "foo"
918
910
"# ,
919
911
)
920
- . file ( "src/foo .rs" , & main_file ( r#""{}", bar::gimme()"# , & [ "bar" ] ) )
912
+ . file ( "src/main .rs" , & main_file ( r#""{}", bar::gimme()"# , & [ "bar" ] ) )
921
913
. file ( "bar/Cargo.toml" , & basic_lib_manifest ( "bar" ) )
922
914
. file (
923
915
"bar/src/bar.rs" ,
@@ -933,8 +925,6 @@ fn cargo_compile_with_warnings_in_a_dep_package() {
933
925
934
926
p. cargo ( "build" )
935
927
. with_stderr_data ( str![ [ r#"
936
- [WARNING] path `src/foo.rs` was erroneously implicitly accepted for binary `foo`,
937
- please set bin.path in Cargo.toml
938
928
[LOCKING] 2 packages to latest compatible versions
939
929
[COMPILING] bar v0.5.0 ([ROOT]/foo/bar)
940
930
[WARNING] [..]dead[..]
@@ -2330,7 +2320,7 @@ fn ignore_broken_symlinks() {
2330
2320
2331
2321
let p = project ( )
2332
2322
. file ( "Cargo.toml" , & basic_bin_manifest ( "foo" ) )
2333
- . file ( "src/foo .rs" , & main_file ( r#""i am foo""# , & [ ] ) )
2323
+ . file ( "src/main .rs" , & main_file ( r#""i am foo""# , & [ ] ) )
2334
2324
. symlink ( "Notafile" , "bar" )
2335
2325
// To hit the symlink directory, we need a build script
2336
2326
// to trigger a full scan of package files.
@@ -2340,8 +2330,6 @@ fn ignore_broken_symlinks() {
2340
2330
2341
2331
p. cargo ( "build" )
2342
2332
. with_stderr_data ( str![ [ r#"
2343
- [WARNING] path `src/foo.rs` was erroneously implicitly accepted for binary `foo`,
2344
- please set bin.path in Cargo.toml
2345
2333
[WARNING] File system loop found: [ROOT]/foo/a/b/c/d/foo points to an ancestor [ROOT]/foo/a/b
2346
2334
[COMPILING] foo v0.5.0 ([ROOT]/foo)
2347
2335
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
0 commit comments