File tree Expand file tree Collapse file tree 5 files changed +13
-9
lines changed
lib-trait-for-trait-no-ice Expand file tree Collapse file tree 5 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ run-make/issue-10971-temps-dir/Makefile
8181run-make/issue-109934-lto-debuginfo/Makefile
8282run-make/issue-14698/Makefile
8383run-make/issue-15460/Makefile
84- run-make/issue-18943/Makefile
8584run-make/issue-20626/Makefile
8685run-make/issue-22131/Makefile
8786run-make/issue-25581/Makefile
Load Diff This file was deleted.
File renamed without changes.
Original file line number Diff line number Diff line change 1+ // Inside a library, implementing a trait for another trait
2+ // with a lifetime used to cause an internal compiler error (ICE).
3+ // This test checks that this bug does not make a resurgence -
4+ // first by ensuring successful compilation, then verifying that
5+ // the lib crate-type flag was actually followed.
6+ // See https://github.com/rust-lang/rust/issues/18943
7+
8+ use run_make_support:: { count_rlibs, rustc} ;
9+
10+ fn main ( ) {
11+ rustc ( ) . input ( "foo.rs" ) . crate_type ( "lib" ) . run ( ) ;
12+ assert_eq ! ( count_rlibs( "foo" ) , 1 ) ;
13+ }
Original file line number Diff line number Diff line change @@ -25,4 +25,3 @@ fn main() {
2525 rustc_foo. run ( ) ;
2626 rustc_foo_panic. run ( ) ;
2727}
28-
You can’t perform that action at this time.
0 commit comments