Skip to content

Commit b2b0737

Browse files
committed
Remove -Z no-opt flag.
Closes #13649
1 parent d7e1bb5 commit b2b0737

File tree

2 files changed

+1
-44
lines changed

2 files changed

+1
-44
lines changed

src/librustc/driver/config.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ debugging_opts!(
176176
SHOW_SPAN,
177177
COUNT_TYPE_SIZES,
178178
META_STATS,
179-
NO_OPT,
180179
GC,
181180
PRINT_LINK_ARGS,
182181
PRINT_LLVM_PASSES,
@@ -212,7 +211,6 @@ pub fn debugging_opts_map() -> Vec<(&'static str, &'static str, u64)> {
212211
("count-type-sizes", "count the sizes of aggregate types",
213212
COUNT_TYPE_SIZES),
214213
("meta-stats", "gather metadata statistics", META_STATS),
215-
("no-opt", "do not optimize, even if -O is passed", NO_OPT),
216214
("print-link-args", "Print the arguments passed to the linker",
217215
PRINT_LINK_ARGS),
218216
("gc", "Garbage collect shared data (experimental)", GC),
@@ -714,9 +712,7 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
714712
let target = matches.opt_str("target").unwrap_or(
715713
driver::host_triple().to_string());
716714
let opt_level = {
717-
if (debugging_opts & NO_OPT) != 0 {
718-
No
719-
} else if matches.opt_present("O") {
715+
if matches.opt_present("O") {
720716
if matches.opt_present("opt-level") {
721717
early_error("-O and --opt-level both provided");
722718
}

src/test/run-pass/capture_nil.rs

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)