Add #[rustc_no_mir] to make tests pass with -Z orbit.
This commit is contained in:
parent
080bd97781
commit
473f804491
45 changed files with 194 additions and 44 deletions
|
|
@ -863,12 +863,28 @@ fn cleanup_debug_info_options(options: &Option<String>) -> Option<String> {
|
|||
"-g".to_owned(),
|
||||
"--debuginfo".to_owned()
|
||||
];
|
||||
let new_options =
|
||||
let mut new_options =
|
||||
split_maybe_args(options).into_iter()
|
||||
.filter(|x| !options_to_remove.contains(x))
|
||||
.collect::<Vec<String>>()
|
||||
.join(" ");
|
||||
Some(new_options)
|
||||
.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(" "))
|
||||
}
|
||||
|
||||
fn check_debugger_output(debugger_run_result: &ProcRes, check_lines: &[String]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue