diff options
| author | bors <bors@rust-lang.org> | 2016-04-12 19:22:32 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-04-12 19:22:32 -0700 |
| commit | 7c27cce9e59bbbc1e556de257de85122dad88dcd (patch) | |
| tree | 8408e6afd554330489cdbefa02c9b05019804632 /src/compiletest | |
| parent | a43eb4e774f6d51b7012bba3d25212819ab0e3dc (diff) | |
| parent | 373b6ec935fb64767d03da9a79d4614ccbb3f084 (diff) | |
| download | rust-7c27cce9e59bbbc1e556de257de85122dad88dcd.tar.gz rust-7c27cce9e59bbbc1e556de257de85122dad88dcd.zip | |
Auto merge of #32803 - eddyb:mir-debuginfo, r=nikomatsakis
Initial implementation of debuginfo in MIR trans. Progress is made towards #31005, but several issues remain, such as #32790.
Diffstat (limited to 'src/compiletest')
| -rw-r--r-- | src/compiletest/runtest.rs | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs index 6773c34c7d7..75866e3cdaa 100644 --- a/src/compiletest/runtest.rs +++ b/src/compiletest/runtest.rs @@ -868,27 +868,11 @@ fn cleanup_debug_info_options(options: &Option<String>) -> Option<String> { "-g".to_owned(), "--debuginfo".to_owned() ]; - let mut new_options = + let new_options = split_maybe_args(options).into_iter() .filter(|x| !options_to_remove.contains(x)) .collect::<Vec<String>>(); - let mut i = 0; - while i + 1 < new_options.len() { - if new_options[i] == "-Z" { - // FIXME #31005 MIR missing debuginfo currently. - if new_options[i + 1] == "orbit" { - // Remove "-Z" and "orbit". - new_options.remove(i); - new_options.remove(i); - continue; - } - // Always skip over -Z's argument. - i += 1; - } - i += 1; - } - Some(new_options.join(" ")) } |
