diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2016-06-07 10:43:58 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2016-06-07 10:43:58 -0400 |
| commit | 814f685df21439ab6eab83f421d4b60cab026a0b (patch) | |
| tree | befa096fd514aae09fcadb5dd9b256f9c2cb5d00 | |
| parent | dd1198d0250c4e74b2de8d5576e922ccf5b99ef8 (diff) | |
| parent | 6e2f966f729821ebc85fdca6a426493d6d2178ce (diff) | |
| download | rust-814f685df21439ab6eab83f421d4b60cab026a0b.tar.gz rust-814f685df21439ab6eab83f421d4b60cab026a0b.zip | |
Rollup merge of #34124 - jonas-schievink:remove-useless-optns, r=sanxiyn
Remove old -Z options that do nothing Technically, this is a [breaking-change], but I'm not sure what the policy for -Z flags is (especially unused ones).
| -rw-r--r-- | src/librustc/session/config.rs | 8 | ||||
| -rw-r--r-- | src/librustc/session/mod.rs | 3 |
2 files changed, 0 insertions, 11 deletions
diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs index d58128b1c4a..7a1ac7c218c 100644 --- a/src/librustc/session/config.rs +++ b/src/librustc/session/config.rs @@ -112,7 +112,6 @@ pub struct Options { // with additional crate configurations during the compile process pub crate_types: Vec<CrateType>, - pub gc: bool, pub optimize: OptLevel, pub debug_assertions: bool, pub debuginfo: DebugInfoLevel, @@ -242,7 +241,6 @@ pub fn host_triple() -> &'static str { pub fn basic_options() -> Options { Options { crate_types: Vec::new(), - gc: false, optimize: OptLevel::No, debuginfo: NoDebugInfo, lint_opts: Vec::new(), @@ -632,14 +630,10 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options, "omit landing pads for unwinding"), debug_llvm: bool = (false, parse_bool, "enable debug output from LLVM"), - count_type_sizes: bool = (false, parse_bool, - "count the sizes of aggregate types"), meta_stats: bool = (false, parse_bool, "gather metadata statistics"), print_link_args: bool = (false, parse_bool, "print the arguments passed to the linker"), - gc: bool = (false, parse_bool, - "garbage collect shared data (experimental)"), print_llvm_passes: bool = (false, parse_bool, "prints the llvm optimization passes being run"), ast_json: bool = (false, parse_bool, @@ -1189,7 +1183,6 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options { } }; let debug_assertions = cg.debug_assertions.unwrap_or(opt_level == OptLevel::No); - let gc = debugging_opts.gc; let debuginfo = if matches.opt_present("g") { if cg.debuginfo.is_some() { early_error(error_format, "-g and -C debuginfo both provided"); @@ -1272,7 +1265,6 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options { Options { crate_types: crate_types, - gc: gc, optimize: opt_level, debuginfo: debuginfo, lint_opts: lint_opts, diff --git a/src/librustc/session/mod.rs b/src/librustc/session/mod.rs index 100b204b501..d60c31369d0 100644 --- a/src/librustc/session/mod.rs +++ b/src/librustc/session/mod.rs @@ -284,9 +284,6 @@ impl Session { pub fn count_llvm_insns(&self) -> bool { self.opts.debugging_opts.count_llvm_insns } - pub fn count_type_sizes(&self) -> bool { - self.opts.debugging_opts.count_type_sizes - } pub fn time_llvm_passes(&self) -> bool { self.opts.debugging_opts.time_llvm_passes } |
