@@ -177,7 +177,7 @@ fn complicated() {
177
177
)
178
178
. file ( "build.rs" , "fn main() { dep_build::foo() }" )
179
179
. file (
180
- "src/main .rs" ,
180
+ "src/bin/foo-bin .rs" ,
181
181
"#[dep_proc_macro::foo] fn main() { dep_normal::foo() }" ,
182
182
)
183
183
. file (
@@ -206,7 +206,9 @@ fn complicated() {
206
206
. with_stderr_contains (
207
207
"[..]`rustc[..]--crate-name dep_proc_macro [..]-C embed-bitcode=no[..]`" ,
208
208
)
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
+ )
210
212
. with_stderr_contains (
211
213
"[..]`rustc[..]--crate-name test [..]--crate-type cdylib[..]-C lto[..]`" ,
212
214
)
@@ -753,7 +755,7 @@ fn dylib_rlib_bin() {
753
755
"# ,
754
756
)
755
757
. 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(); }" )
757
759
. build ( ) ;
758
760
759
761
let output = p. cargo ( "build --release -v" ) . exec_with_output ( ) . unwrap ( ) ;
@@ -763,7 +765,7 @@ fn dylib_rlib_bin() {
763
765
"--crate-type dylib --crate-type rlib" ,
764
766
Lto :: ObjectAndBitcode ,
765
767
) ;
766
- verify_lto ( & output, "foo " , "--crate-type bin" , Lto :: Run ( None ) ) ;
768
+ verify_lto ( & output, "ferret " , "--crate-type bin" , Lto :: Run ( None ) ) ;
767
769
}
768
770
769
771
#[ cargo_test]
0 commit comments