diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2016-04-07 22:43:46 +0300 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2016-04-11 20:51:45 +0300 |
| commit | 373b6ec935fb64767d03da9a79d4614ccbb3f084 (patch) | |
| tree | ea81a53af75b514e9676f3b83ec00440a2f41003 /src/compiletest | |
| parent | ce8d4a21348c6185e7df2817a80910f86e9db205 (diff) | |
| download | rust-373b6ec935fb64767d03da9a79d4614ccbb3f084.tar.gz rust-373b6ec935fb64767d03da9a79d4614ccbb3f084.zip | |
tests: update for MIR debuginfo.
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 994f45da146..b95bd8e52d0 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(" ")) } |
