@@ -860,48 +860,20 @@ fn precedence() {
860
860
fn build_with_duplicate_crate_types ( ) {
861
861
let p = project ( ) . file ( "src/lib.rs" , "" ) . build ( ) ;
862
862
863
- p
864
- . cargo ( "rustc -v --crate-type staticlib --crate-type staticlib" )
863
+ p. cargo ( "rustc -v --crate-type staticlib --crate-type staticlib" )
865
864
. with_stderr_data ( str![ [ r#"
866
- [WARNING] output filename collision.
867
- The lib target `foo` in package `foo v0.0.1 ([ROOT]/foo)` has the same output filename as the lib target `foo` in package `foo v0.0.1 ([ROOT]/foo)`.
868
- Colliding filename is: [ROOT]/foo/target/debug/deps/libfoo-[HASH].a
869
- The targets should have unique names.
870
- Consider changing their names to be unique or compiling them separately.
871
- This may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>.
872
- [WARNING] output filename collision.
873
- The lib target `foo` in package `foo v0.0.1 ([ROOT]/foo)` has the same output filename as the lib target `foo` in package `foo v0.0.1 ([ROOT]/foo)`.
874
- Colliding filename is: [ROOT]/foo/target/debug/libfoo.a
875
- The targets should have unique names.
876
- Consider changing their names to be unique or compiling them separately.
877
- This may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>.
878
865
[COMPILING] foo v0.0.1 ([ROOT]/foo)
879
- [RUNNING] `rustc [..]future-incompat --crate-type staticlib --crate-type staticlib --emit[..]
866
+ [RUNNING] `rustc [..] --crate-type staticlib --emit[..]
880
867
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
881
868
882
869
"# ] ] )
883
870
. run ( ) ;
884
871
885
872
p. cargo ( "rustc -v --crate-type staticlib --crate-type staticlib" )
886
- . with_status ( 101 )
887
- . with_stderr_data ( str![ [ r#"
888
- [WARNING] output filename collision.
889
- The lib target `foo` in package `foo v0.0.1 ([ROOT]/foo)` has the same output filename as the lib target `foo` in package `foo v0.0.1 ([ROOT]/foo)`.
890
- Colliding filename is: [ROOT]/foo/target/debug/deps/libfoo-[HASH].a
891
- The targets should have unique names.
892
- Consider changing their names to be unique or compiling them separately.
893
- This may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>.
894
- [WARNING] output filename collision.
895
- The lib target `foo` in package `foo v0.0.1 ([ROOT]/foo)` has the same output filename as the lib target `foo` in package `foo v0.0.1 ([ROOT]/foo)`.
896
- Colliding filename is: [ROOT]/foo/target/debug/libfoo.a
897
- The targets should have unique names.
898
- Consider changing their names to be unique or compiling them separately.
899
- This may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>.
900
-
901
- thread 'main' panicked at src/cargo/core/compiler/fingerprint/mod.rs:1180:13:
902
- assertion failed: mtimes.insert(output.clone(), mtime).is_none()
903
- [NOTE] run with `RUST_BACKTRACE=1` environment variable to display a backtrace
873
+ . with_stderr_data ( str![ [ r#"
874
+ [FRESH] foo v0.0.1 ([ROOT]/foo)
875
+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
904
876
905
877
"# ] ] )
906
- . run ( ) ;
878
+ . run ( ) ;
907
879
}
0 commit comments