mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
auto merge of #11347 : alexcrichton/rust/issue-11346, r=brson
This ends up causing weird errors like those seen in #11346 Closes #11346
This commit is contained in:
commit
ba6ed004b0
@ -192,7 +192,7 @@ pub enum EntryFnType {
|
||||
EntryNone,
|
||||
}
|
||||
|
||||
#[deriving(Eq, Clone)]
|
||||
#[deriving(Eq, Clone, TotalOrd, TotalEq)]
|
||||
pub enum OutputStyle {
|
||||
OutputExecutable,
|
||||
OutputDylib,
|
||||
@ -461,6 +461,8 @@ pub fn collect_outputs(session: &Session,
|
||||
if base.len() == 0 {
|
||||
base.push(OutputExecutable);
|
||||
}
|
||||
base.sort();
|
||||
base.dedup();
|
||||
return base;
|
||||
}
|
||||
|
||||
|
4
src/test/run-make/duplicate-output-flavors/Makefile
Normal file
4
src/test/run-make/duplicate-output-flavors/Makefile
Normal file
@ -0,0 +1,4 @@
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) --rlib foo.rs
|
1
src/test/run-make/duplicate-output-flavors/foo.rs
Normal file
1
src/test/run-make/duplicate-output-flavors/foo.rs
Normal file
@ -0,0 +1 @@
|
||||
#[crate_type = "rlib"];
|
Loading…
Reference in New Issue
Block a user