Skip to content

Commit

Permalink
Move mir-opt tests to toplevel
Browse files Browse the repository at this point in the history
  • Loading branch information
xldenis committed Jul 29, 2020
1 parent 86be22e commit f07607f
Show file tree
Hide file tree
Showing 195 changed files with 68 additions and 275 deletions.
1 change: 1 addition & 0 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ dependencies = [
"diff",
"env_logger 0.7.1",
"getopts",
"glob",
"lazy_static",
"libc",
"log",
Expand Down
7 changes: 0 additions & 7 deletions fuckyou.rb

This file was deleted.

2 changes: 0 additions & 2 deletions omg.mir

This file was deleted.

11 changes: 9 additions & 2 deletions src/librustc_mir/util/pretty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

bb0: {
+ StorageLive(_1); // scope 0 at $DIR/instrument_coverage.rs:18:18: 18:18
+ _1 = const std::intrinsics::count_code_region(const 10208505205182607101_u64, const 0_u32, const 501_u32, const 513_u32) -> bb2; // scope 0 at $DIR/instrument_coverage.rs:18:18: 18:18
+ _1 = const std::intrinsics::count_code_region(const 10208505205182607101_u64, const 0_u32, const 529_u32, const 541_u32) -> bb2; // scope 0 at $DIR/instrument_coverage.rs:18:18: 18:18
+ // ty::Const
+ // + ty: unsafe extern "rust-intrinsic" fn(u64, u32, u32, u32) {std::intrinsics::count_code_region}
+ // + val: Value(Scalar(<ZST>))
Expand All @@ -28,16 +28,16 @@
+ // + literal: Const { ty: u32, val: Value(Scalar(0x00000000)) }
+ // ty::Const
+ // + ty: u32
+ // + val: Value(Scalar(0x000001f5))
+ // + val: Value(Scalar(0x00000211))
+ // mir::Constant
+ // + span: $DIR/instrument_coverage.rs:18:18: 18:18
+ // + literal: Const { ty: u32, val: Value(Scalar(0x000001f5)) }
+ // + literal: Const { ty: u32, val: Value(Scalar(0x00000211)) }
+ // ty::Const
+ // + ty: u32
+ // + val: Value(Scalar(0x00000201))
+ // + val: Value(Scalar(0x0000021d))
+ // mir::Constant
+ // + span: $DIR/instrument_coverage.rs:18:18: 18:18
+ // + literal: Const { ty: u32, val: Value(Scalar(0x00000201)) }
+ // + literal: Const { ty: u32, val: Value(Scalar(0x0000021d)) }
+ }
+
+ bb1 (cleanup): {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
bb0: {
- falseUnwind -> [real: bb1, cleanup: bb2]; // scope 0 at $DIR/instrument_coverage.rs:10:5: 14:6
+ StorageLive(_4); // scope 0 at $DIR/instrument_coverage.rs:9:11: 9:11
+ _4 = const std::intrinsics::count_code_region(const 16004455475339839479_u64, const 0_u32, const 397_u32, const 465_u32) -> bb7; // scope 0 at $DIR/instrument_coverage.rs:9:11: 9:11
+ _4 = const std::intrinsics::count_code_region(const 16004455475339839479_u64, const 0_u32, const 425_u32, const 493_u32) -> bb7; // scope 0 at $DIR/instrument_coverage.rs:9:11: 9:11
+ // ty::Const
+ // + ty: unsafe extern "rust-intrinsic" fn(u64, u32, u32, u32) {std::intrinsics::count_code_region}
+ // + val: Value(Scalar(<ZST>))
Expand All @@ -32,16 +32,16 @@
+ // + literal: Const { ty: u32, val: Value(Scalar(0x00000000)) }
+ // ty::Const
+ // + ty: u32
+ // + val: Value(Scalar(0x0000018d))
+ // + val: Value(Scalar(0x000001a9))
+ // mir::Constant
+ // + span: $DIR/instrument_coverage.rs:9:11: 9:11
+ // + literal: Const { ty: u32, val: Value(Scalar(0x0000018d)) }
+ // + literal: Const { ty: u32, val: Value(Scalar(0x000001a9)) }
+ // ty::Const
+ // + ty: u32
+ // + val: Value(Scalar(0x000001d1))
+ // + val: Value(Scalar(0x000001ed))
+ // mir::Constant
+ // + span: $DIR/instrument_coverage.rs:9:11: 9:11
+ // + literal: Const { ty: u32, val: Value(Scalar(0x000001d1)) }
+ // + literal: Const { ty: u32, val: Value(Scalar(0x000001ed)) }
}

bb1: {
Expand Down
25 changes: 0 additions & 25 deletions src/test/mir-opt/issue-72181/rustc.bar.mir_map.0.mir

This file was deleted.

37 changes: 0 additions & 37 deletions src/test/mir-opt/issue-72181/rustc.foo.mir_map.0.mir

This file was deleted.

93 changes: 0 additions & 93 deletions src/test/mir-opt/issue-72181/rustc.main.mir_map.0.mir

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions src/tools/compiletest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ serde_json = "1.0"
rustfix = "0.5.0"
lazy_static = "1.0"
walkdir = "2"
glob = "0.3.0"

[target.'cfg(unix)'.dependencies]
libc = "0.2"
Expand Down
Loading

0 comments on commit f07607f

Please sign in to comment.