@@ -3776,10 +3776,9 @@ fn nonexistent_example_target_path() {
37763776 p. cargo ( "check --examples" )
37773777 . with_status ( 101 )
37783778 . with_stderr_data ( str![ [ r#"
3779- [CHECKING] foo v1.0.0 ([ROOT]/foo)
3780- [ERROR] couldn't read `examples/null.rs`: [NOT_FOUND]
3781-
3782- [ERROR] could not compile `foo` (example "bar") due to 1 previous error
3779+ [ERROR] can't find example `bar` at path `[ROOT]/foo/examples/null.rs`
3780+ --> [ROOT]/foo/Cargo.toml
3781+ [ERROR] could not compile due to 1 previous target resolution error
37833782
37843783"# ] ] )
37853784 . run ( ) ;
@@ -3805,10 +3804,9 @@ fn nonexistent_library_target_path() {
38053804 p. cargo ( "check" )
38063805 . with_status ( 101 )
38073806 . with_stderr_data ( str![ [ r#"
3808- [CHECKING] foo v1.0.0 ([ROOT]/foo)
3809- [ERROR] couldn't read `src/null.rs`: [NOT_FOUND]
3810-
3811- [ERROR] could not compile `foo` (lib) due to 1 previous error
3807+ [ERROR] can't find lib `foo` at path `[ROOT]/foo/src/null.rs`
3808+ --> [ROOT]/foo/Cargo.toml
3809+ [ERROR] could not compile due to 1 previous target resolution error
38123810
38133811"# ] ] )
38143812 . run ( ) ;
@@ -3834,10 +3832,9 @@ fn nonexistent_binary_target_path() {
38343832 p. cargo ( "check" )
38353833 . with_status ( 101 )
38363834 . with_stderr_data ( str![ [ r#"
3837- [CHECKING] foo v1.0.0 ([ROOT]/foo)
3838- [ERROR] couldn't read `src/null.rs`: [NOT_FOUND]
3839-
3840- [ERROR] could not compile `foo` (bin "null") due to 1 previous error
3835+ [ERROR] can't find bin `null` at path `[ROOT]/foo/src/null.rs`
3836+ --> [ROOT]/foo/Cargo.toml
3837+ [ERROR] could not compile due to 1 previous target resolution error
38413838
38423839"# ] ] )
38433840 . run ( ) ;
@@ -3863,10 +3860,9 @@ fn nonexistent_test_target_path() {
38633860 p. cargo ( "test" )
38643861 . with_status ( 101 )
38653862 . with_stderr_data ( str![ [ r#"
3866- [COMPILING] foo v1.0.0 ([ROOT]/foo)
3867- [ERROR] couldn't read `src/null.rs`: [NOT_FOUND]
3868-
3869- [ERROR] could not compile `foo` (test "null") due to 1 previous error
3863+ [ERROR] can't find integration-test `null` at path `[ROOT]/foo/src/null.rs`
3864+ --> [ROOT]/foo/Cargo.toml
3865+ [ERROR] could not compile due to 1 previous target resolution error
38703866
38713867"# ] ] )
38723868 . run ( ) ;
@@ -3892,10 +3888,9 @@ fn nonexistent_bench_target_path() {
38923888 p. cargo ( "bench" )
38933889 . with_status ( 101 )
38943890 . with_stderr_data ( str![ [ r#"
3895- [COMPILING] foo v1.0.0 ([ROOT]/foo)
3896- [ERROR] couldn't read `src/null.rs`: [NOT_FOUND]
3897-
3898- [ERROR] could not compile `foo` (bench "null") due to 1 previous error
3891+ [ERROR] can't find bench `null` at path `[ROOT]/foo/src/null.rs`
3892+ --> [ROOT]/foo/Cargo.toml
3893+ [ERROR] could not compile due to 1 previous target resolution error
38993894
39003895"# ] ] )
39013896 . run ( ) ;
@@ -3922,10 +3917,9 @@ fn directory_as_example_target_path() {
39223917 p. cargo ( "check --example bar" )
39233918 . with_status ( 101 )
39243919 . with_stderr_data ( str![ [ r#"
3925- [CHECKING] foo v1.0.0 ([ROOT]/foo)
3926- [ERROR] couldn't read `examples/bar`: Is a directory (os error 21)
3927-
3928- [ERROR] could not compile `foo` (example "bar") due to 1 previous error
3920+ [ERROR] path `[ROOT]/foo/examples/bar` for example `bar` is a directory, but a source file was expected.
3921+ --> [ROOT]/foo/Cargo.toml
3922+ [ERROR] could not compile due to 1 previous target resolution error
39293923
39303924"# ] ] )
39313925 . run ( ) ;
@@ -3951,10 +3945,9 @@ fn directory_as_library_target_path() {
39513945 p. cargo ( "check" )
39523946 . with_status ( 101 )
39533947 . with_stderr_data ( str![ [ r#"
3954- [CHECKING] foo v1.0.0 ([ROOT]/foo)
3955- [ERROR] couldn't read `src/null`: Is a directory (os error 21)
3956-
3957- [ERROR] could not compile `foo` (lib) due to 1 previous error
3948+ [ERROR] path `[ROOT]/foo/src/null` for lib `foo` is a directory, but a source file was expected.
3949+ --> [ROOT]/foo/Cargo.toml
3950+ [ERROR] could not compile due to 1 previous target resolution error
39583951
39593952"# ] ] )
39603953 . run ( ) ;
@@ -3981,10 +3974,9 @@ fn directory_as_binary_target_path() {
39813974 p. cargo ( "check" )
39823975 . with_status ( 101 )
39833976 . with_stderr_data ( str![ [ r#"
3984- [CHECKING] foo v1.0.0 ([ROOT]/foo)
3985- [ERROR] couldn't read `src/null`: Is a directory (os error 21)
3986-
3987- [ERROR] could not compile `foo` (bin "null") due to 1 previous error
3977+ [ERROR] path `[ROOT]/foo/src/null` for bin `null` is a directory, but a source file was expected.
3978+ --> [ROOT]/foo/Cargo.toml
3979+ [ERROR] could not compile due to 1 previous target resolution error
39883980
39893981"# ] ] )
39903982 . run ( ) ;
@@ -4011,10 +4003,9 @@ fn directory_as_test_target_path() {
40114003 p. cargo ( "test" )
40124004 . with_status ( 101 )
40134005 . with_stderr_data ( str![ [ r#"
4014- [COMPILING] foo v1.0.0 ([ROOT]/foo)
4015- [ERROR] couldn't read `src/null`: Is a directory (os error 21)
4016-
4017- [ERROR] could not compile `foo` (test "null") due to 1 previous error
4006+ [ERROR] path `[ROOT]/foo/src/null` for integration-test `null` is a directory, but a source file was expected.
4007+ --> [ROOT]/foo/Cargo.toml
4008+ [ERROR] could not compile due to 1 previous target resolution error
40184009
40194010"# ] ] )
40204011 . run ( ) ;
@@ -4041,10 +4032,9 @@ fn directory_as_bench_target_path() {
40414032 p. cargo ( "bench" )
40424033 . with_status ( 101 )
40434034 . with_stderr_data ( str![ [ r#"
4044- [COMPILING] foo v1.0.0 ([ROOT]/foo)
4045- [ERROR] couldn't read `src/null`: Is a directory (os error 21)
4046-
4047- [ERROR] could not compile `foo` (bench "null") due to 1 previous error
4035+ [ERROR] path `[ROOT]/foo/src/null` for bench `null` is a directory, but a source file was expected.
4036+ --> [ROOT]/foo/Cargo.toml
4037+ [ERROR] could not compile due to 1 previous target resolution error
40484038
40494039"# ] ] )
40504040 . run ( ) ;
@@ -4066,15 +4056,15 @@ fn directory_as_example_target_path_with_entrypoint() {
40664056 path = "examples/bar"
40674057 "# ,
40684058 )
4069- . file ( "examples/bar/.temp " , "" )
4059+ . file ( "examples/bar/main.rs " , "fn main() {} " )
40704060 . build ( ) ;
40714061 p. cargo ( "check --example bar" )
40724062 . with_status ( 101 )
40734063 . with_stderr_data ( str![ [ r#"
4074- [CHECKING] foo v1.0.0 ( [ROOT]/foo)
4075- [ERROR] couldn't read `examples/bar`: Is a directory (os error 21)
4076-
4077- [ERROR] could not compile `foo` (example "bar") due to 1 previous error
4064+ [ERROR] path ` [ROOT]/foo/examples/bar` for example `bar` is a directory, but a source file was expected.
4065+ --> [ROOT]/foo/Cargo.toml
4066+ = [HELP] an entry point exists at `[ROOT]/foo/examples/bar/main.rs`
4067+ [ERROR] could not compile due to 1 previous target resolution error
40784068
40794069"# ] ] )
40804070 . run ( ) ;
@@ -4095,15 +4085,15 @@ fn directory_as_library_target_path_with_entrypoint() {
40954085 path = "src/null"
40964086 "# ,
40974087 )
4098- . file ( "src/null/.temp " , "" )
4088+ . file ( "src/null/lib.rs " , "fn foo() {} " )
40994089 . build ( ) ;
41004090 p. cargo ( "check" )
41014091 . with_status ( 101 )
41024092 . with_stderr_data ( str![ [ r#"
4103- [CHECKING] foo v1.0.0 ( [ROOT]/foo)
4104- [ERROR] couldn't read `src/null`: Is a directory (os error 21)
4105-
4106- [ERROR] could not compile `foo` (lib) due to 1 previous error
4093+ [ERROR] path ` [ROOT]/foo/src/null` for lib `foo` is a directory, but a source file was expected.
4094+ --> [ROOT]/foo/Cargo.toml
4095+ = [HELP] an entry point exists at `[ROOT]/foo/src/null/lib.rs`
4096+ [ERROR] could not compile due to 1 previous target resolution error
41074097
41084098"# ] ] )
41094099 . run ( ) ;
@@ -4125,15 +4115,15 @@ fn directory_as_binary_target_path_with_entrypoint() {
41254115 path = "src/null"
41264116 "# ,
41274117 )
4128- . file ( "src/null/.temp " , "" )
4118+ . file ( "src/null/main.rs " , "fn main() {} " )
41294119 . build ( ) ;
41304120 p. cargo ( "check" )
41314121 . with_status ( 101 )
41324122 . with_stderr_data ( str![ [ r#"
4133- [CHECKING] foo v1.0.0 ( [ROOT]/foo)
4134- [ERROR] couldn't read `src/null`: Is a directory (os error 21)
4135-
4136- [ERROR] could not compile `foo` (bin "null") due to 1 previous error
4123+ [ERROR] path ` [ROOT]/foo/src/null` for bin `null` is a directory, but a source file was expected.
4124+ --> [ROOT]/foo/Cargo.toml
4125+ = [HELP] an entry point exists at `[ROOT]/foo/src/null/main.rs`
4126+ [ERROR] could not compile due to 1 previous target resolution error
41374127
41384128"# ] ] )
41394129 . run ( ) ;
@@ -4155,15 +4145,15 @@ fn directory_as_test_target_path_with_entrypoint() {
41554145 path = "src/null"
41564146 "# ,
41574147 )
4158- . file ( "src/null/.temp " , "" )
4148+ . file ( "src/null/main.rs " , "fn main() {} " )
41594149 . build ( ) ;
41604150 p. cargo ( "test" )
41614151 . with_status ( 101 )
41624152 . with_stderr_data ( str![ [ r#"
4163- [COMPILING] foo v1.0.0 ( [ROOT]/foo)
4164- [ERROR] couldn't read `src/null`: Is a directory (os error 21)
4165-
4166- [ERROR] could not compile `foo` (test "null") due to 1 previous error
4153+ [ERROR] path ` [ROOT]/foo/src/null` for integration-test `null` is a directory, but a source file was expected.
4154+ --> [ROOT]/foo/Cargo.toml
4155+ = [HELP] an entry point exists at `[ROOT]/foo/src/null/main.rs`
4156+ [ERROR] could not compile due to 1 previous target resolution error
41674157
41684158"# ] ] )
41694159 . run ( ) ;
@@ -4185,15 +4175,15 @@ fn directory_as_bench_target_path_with_entrypoint() {
41854175 path = "src/null"
41864176 "# ,
41874177 )
4188- . file ( "src/null/.temp " , "" )
4178+ . file ( "src/null/main.rs " , "fn main() {} " )
41894179 . build ( ) ;
41904180 p. cargo ( "bench" )
41914181 . with_status ( 101 )
41924182 . with_stderr_data ( str![ [ r#"
4193- [COMPILING] foo v1.0.0 ( [ROOT]/foo)
4194- [ERROR] couldn't read `src/null`: Is a directory (os error 21)
4195-
4196- [ERROR] could not compile `foo` (bench "null") due to 1 previous error
4183+ [ERROR] path ` [ROOT]/foo/src/null` for bench `null` is a directory, but a source file was expected.
4184+ --> [ROOT]/foo/Cargo.toml
4185+ = [HELP] an entry point exists at `[ROOT]/foo/src/null/main.rs`
4186+ [ERROR] could not compile due to 1 previous target resolution error
41974187
41984188"# ] ] )
41994189 . run ( ) ;
0 commit comments