@@ -177,7 +177,7 @@ fn complicated() {
177177 )
178178 . file ( "build.rs" , "fn main() { dep_build::foo() }" )
179179 . file (
180- "src/main .rs" ,
180+ "src/bin/foo-bin .rs" ,
181181 "#[dep_proc_macro::foo] fn main() { dep_normal::foo() }" ,
182182 )
183183 . file (
@@ -206,7 +206,9 @@ fn complicated() {
206206 . with_stderr_contains (
207207 "[..]`rustc[..]--crate-name dep_proc_macro [..]-C embed-bitcode=no[..]`" ,
208208 )
209- . with_stderr_contains ( "[..]`rustc[..]--crate-name test [..]--crate-type bin[..]-C lto[..]`" )
209+ . with_stderr_contains (
210+ "[..]`rustc[..]--crate-name foo_bin [..]--crate-type bin[..]-C lto[..]`" ,
211+ )
210212 . with_stderr_contains (
211213 "[..]`rustc[..]--crate-name test [..]--crate-type cdylib[..]-C lto[..]`" ,
212214 )
@@ -753,7 +755,7 @@ fn dylib_rlib_bin() {
753755 "# ,
754756 )
755757 . file ( "src/lib.rs" , "pub fn foo() { println!(\" hi!\" ); }" )
756- . file ( "src/main .rs" , "fn main() { foo::foo(); }" )
758+ . file ( "src/bin/ferret .rs" , "fn main() { foo::foo(); }" )
757759 . build ( ) ;
758760
759761 let output = p. cargo ( "build --release -v" ) . exec_with_output ( ) . unwrap ( ) ;
@@ -763,7 +765,7 @@ fn dylib_rlib_bin() {
763765 "--crate-type dylib --crate-type rlib" ,
764766 Lto :: ObjectAndBitcode ,
765767 ) ;
766- verify_lto ( & output, "foo " , "--crate-type bin" , Lto :: Run ( None ) ) ;
768+ verify_lto ( & output, "ferret " , "--crate-type bin" , Lto :: Run ( None ) ) ;
767769}
768770
769771#[ cargo_test]
0 commit comments