Skip to content

Commit 0299b52

Browse files
author
tang0th
committed
Remove -Z no-opt flag. Fix rust-lang#13649
1 parent bbd034c commit 0299b52

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/librustc/driver/config.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ debugging_opts!(
165165
SHOW_SPAN,
166166
COUNT_TYPE_SIZES,
167167
META_STATS,
168-
NO_OPT,
169168
GC,
170169
PRINT_LINK_ARGS,
171170
PRINT_LLVM_PASSES,
@@ -196,7 +195,6 @@ pub fn debugging_opts_map() -> Vec<(&'static str, &'static str, u64)> {
196195
("count-type-sizes", "count the sizes of aggregate types",
197196
COUNT_TYPE_SIZES),
198197
("meta-stats", "gather metadata statistics", META_STATS),
199-
("no-opt", "do not optimize, even if -O is passed", NO_OPT),
200198
("print-link-args", "Print the arguments passed to the linker",
201199
PRINT_LINK_ARGS),
202200
("gc", "Garbage collect shared data (experimental)", GC),
@@ -653,7 +651,7 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
653651
None => driver::host_triple().to_strbuf(),
654652
};
655653
let opt_level = {
656-
if (debugging_opts & NO_OPT) != 0 {
654+
if debugging_opts != 0 {
657655
No
658656
} else if matches.opt_present("O") {
659657
if matches.opt_present("opt-level") {

0 commit comments

Comments
 (0)