forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rewrite and rename issue-18943 to rmake
- Loading branch information
Showing
5 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Inside a library, implementing a trait for another trait | ||
// with a lifetime used to cause an internal compiler error (ICE). | ||
// This test checks that this bug does not make a resurgence - | ||
// first by ensuring successful compilation, then verifying that | ||
// the lib crate-type flag was actually followed. | ||
// See https://github.com/rust-lang/rust/issues/18943 | ||
|
||
use run_make_support::{count_rlibs, rustc}; | ||
|
||
fn main() { | ||
rustc().input("foo.rs").crate_type("lib").run(); | ||
assert_eq!(count_rlibs("foo"), 1); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,3 @@ fn main() { | |
rustc_foo.run(); | ||
rustc_foo_panic.run(); | ||
} | ||
|