@@ -112,7 +112,6 @@ pub struct Options {
112
112
// with additional crate configurations during the compile process
113
113
pub crate_types : Vec < CrateType > ,
114
114
115
- pub gc : bool ,
116
115
pub optimize : OptLevel ,
117
116
pub debug_assertions : bool ,
118
117
pub debuginfo : DebugInfoLevel ,
@@ -242,7 +241,6 @@ pub fn host_triple() -> &'static str {
242
241
pub fn basic_options ( ) -> Options {
243
242
Options {
244
243
crate_types : Vec :: new ( ) ,
245
- gc : false ,
246
244
optimize : OptLevel :: No ,
247
245
debuginfo : NoDebugInfo ,
248
246
lint_opts : Vec :: new ( ) ,
@@ -632,14 +630,10 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
632
630
"omit landing pads for unwinding" ) ,
633
631
debug_llvm: bool = ( false , parse_bool,
634
632
"enable debug output from LLVM" ) ,
635
- count_type_sizes: bool = ( false , parse_bool,
636
- "count the sizes of aggregate types" ) ,
637
633
meta_stats: bool = ( false , parse_bool,
638
634
"gather metadata statistics" ) ,
639
635
print_link_args: bool = ( false , parse_bool,
640
636
"print the arguments passed to the linker" ) ,
641
- gc: bool = ( false , parse_bool,
642
- "garbage collect shared data (experimental)" ) ,
643
637
print_llvm_passes: bool = ( false , parse_bool,
644
638
"prints the llvm optimization passes being run" ) ,
645
639
ast_json: bool = ( false , parse_bool,
@@ -1189,7 +1183,6 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
1189
1183
}
1190
1184
} ;
1191
1185
let debug_assertions = cg. debug_assertions . unwrap_or ( opt_level == OptLevel :: No ) ;
1192
- let gc = debugging_opts. gc ;
1193
1186
let debuginfo = if matches. opt_present ( "g" ) {
1194
1187
if cg. debuginfo . is_some ( ) {
1195
1188
early_error ( error_format, "-g and -C debuginfo both provided" ) ;
@@ -1272,7 +1265,6 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
1272
1265
1273
1266
Options {
1274
1267
crate_types : crate_types,
1275
- gc : gc,
1276
1268
optimize : opt_level,
1277
1269
debuginfo : debuginfo,
1278
1270
lint_opts : lint_opts,
0 commit comments