mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Move mir-opt tests to toplevel
This commit is contained in:
parent
86be22ebcd
commit
f07607f47a
@ -611,6 +611,7 @@ dependencies = [
|
||||
"diff",
|
||||
"env_logger 0.7.1",
|
||||
"getopts",
|
||||
"glob",
|
||||
"lazy_static",
|
||||
"libc",
|
||||
"log",
|
||||
|
@ -1,7 +0,0 @@
|
||||
Dir.glob('src/test/mir-opt/**/*.rs').each do |f|
|
||||
puts f
|
||||
t = File.read(f)
|
||||
b = File.basename(f, ".rs")
|
||||
t.gsub!(/\/\/ EMIT_MIR rustc/, "// EMIT_MIR " + b)
|
||||
File.open(f, "w") { |f| f.puts t }
|
||||
end
|
@ -197,8 +197,15 @@ fn dump_path(
|
||||
};
|
||||
|
||||
let file_name = format!(
|
||||
"{}.{}{}{}{}.{}.{}.{}", crate_name,
|
||||
item_name, shim_disambiguator, promotion_id, pass_num, pass_name, disambiguator, extension,
|
||||
"{}.{}{}{}{}.{}.{}.{}",
|
||||
crate_name,
|
||||
item_name,
|
||||
shim_disambiguator,
|
||||
promotion_id,
|
||||
pass_num,
|
||||
pass_name,
|
||||
disambiguator,
|
||||
extension,
|
||||
);
|
||||
|
||||
file_path.push(&file_name);
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user