From a6e8496601767e59acce010531f8e4dfb40c7c0a Mon Sep 17 00:00:00 2001 From: Simonas Kazlauskas Date: Mon, 9 Feb 2015 19:30:22 +0200 Subject: [PATCH] Deduplicate --crate-type arguments Crate types from multiple sources appear to be deduplicated properly, but not deduplicated if they come from the command line arguments. At worst, this used to cause compiler failures when `--crate-type=lib,rlib` (the same as `--crate-type=rlib,rlib`, at least at the time of this commit) is provided and generate the output multiple times otherwise. --- src/librustc/session/config.rs | 4 +++- src/test/run-make/duplicate-output-flavors/Makefile | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs index efd2392e453..6d09b8b09e7 100644 --- a/src/librustc/session/config.rs +++ b/src/librustc/session/config.rs @@ -1061,7 +1061,9 @@ pub fn parse_crate_types_from_list(list_list: Vec) -> Result