Skip to content

Commit 6e2f966

Browse files
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).
1 parent 763f923 commit 6e2f966

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/librustc/session/config.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ pub struct Options {
112112
// with additional crate configurations during the compile process
113113
pub crate_types: Vec<CrateType>,
114114

115-
pub gc: bool,
116115
pub optimize: OptLevel,
117116
pub debug_assertions: bool,
118117
pub debuginfo: DebugInfoLevel,
@@ -242,7 +241,6 @@ pub fn host_triple() -> &'static str {
242241
pub fn basic_options() -> Options {
243242
Options {
244243
crate_types: Vec::new(),
245-
gc: false,
246244
optimize: OptLevel::No,
247245
debuginfo: NoDebugInfo,
248246
lint_opts: Vec::new(),
@@ -632,14 +630,10 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
632630
"omit landing pads for unwinding"),
633631
debug_llvm: bool = (false, parse_bool,
634632
"enable debug output from LLVM"),
635-
count_type_sizes: bool = (false, parse_bool,
636-
"count the sizes of aggregate types"),
637633
meta_stats: bool = (false, parse_bool,
638634
"gather metadata statistics"),
639635
print_link_args: bool = (false, parse_bool,
640636
"print the arguments passed to the linker"),
641-
gc: bool = (false, parse_bool,
642-
"garbage collect shared data (experimental)"),
643637
print_llvm_passes: bool = (false, parse_bool,
644638
"prints the llvm optimization passes being run"),
645639
ast_json: bool = (false, parse_bool,
@@ -1189,7 +1183,6 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
11891183
}
11901184
};
11911185
let debug_assertions = cg.debug_assertions.unwrap_or(opt_level == OptLevel::No);
1192-
let gc = debugging_opts.gc;
11931186
let debuginfo = if matches.opt_present("g") {
11941187
if cg.debuginfo.is_some() {
11951188
early_error(error_format, "-g and -C debuginfo both provided");
@@ -1272,7 +1265,6 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
12721265

12731266
Options {
12741267
crate_types: crate_types,
1275-
gc: gc,
12761268
optimize: opt_level,
12771269
debuginfo: debuginfo,
12781270
lint_opts: lint_opts,

src/librustc/session/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,6 @@ impl Session {
284284
pub fn count_llvm_insns(&self) -> bool {
285285
self.opts.debugging_opts.count_llvm_insns
286286
}
287-
pub fn count_type_sizes(&self) -> bool {
288-
self.opts.debugging_opts.count_type_sizes
289-
}
290287
pub fn time_llvm_passes(&self) -> bool {
291288
self.opts.debugging_opts.time_llvm_passes
292289
}

0 commit comments

Comments
 (0)