Skip to content

Commit

Permalink
Renamed tests to avoid exceeding Windows max path limit
Browse files Browse the repository at this point in the history
  • Loading branch information
richkadel committed Oct 5, 2020
1 parent f5aebad commit 6f62766
Show file tree
Hide file tree
Showing 126 changed files with 586 additions and 592 deletions.
8 changes: 1 addition & 7 deletions compiler/rustc_mir/src/util/pretty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,7 @@ fn dump_matched_mir_node<'tcx, F>(
dump_file_basename(tcx, pass_num, pass_name, disambiguator, body.source);
let mut file = create_dump_file_with_basename(tcx, &file_basename, "html")?;
if body.source.def_id().is_local() {
write_mir_fn_spanview(
tcx,
body,
spanview,
&file_basename,
&mut file,
)?;
write_mir_fn_spanview(tcx, body, spanview, &file_basename, &mut file)?;
}
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

# ISSUE(76038): When targeting MSVC, Rust binaries built with both `-Z instrument-coverage` and
# `-C link-dead-code` typically crash (with a seg-fault) or at best generate an empty `*.profraw`.
# See ../instrument-coverage/coverage_tools.mk for more information.
# See ../coverage/coverage_tools.mk for more information.

-include ../instrument-coverage/coverage_tools.mk
-include ../coverage/coverage_tools.mk

BASEDIR=../instrument-coverage-llvm-ir-base
BASEDIR=../coverage-llvmir-base

ifeq ($(UNAME),Darwin)
INSTR_PROF_DATA_SUFFIX=,regular,live_support
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# LINK_DEAD_CODE requires ignore-msvc due to Issue #76038
LINK_DEAD_CODE=yes

-include ../instrument-coverage-llvm-ir-base/Makefile
-include ../coverage-llvmir-base/Makefile

# ISSUE(76038): When targeting MSVC, Rust binaries built with both `-Z instrument-coverage` and
# `-C link-dead-code` typically crash (with a seg-fault) or at best generate an empty `*.profraw`.
# See ../instrument-coverage/coverage_tools.mk for more information.
# See ../coverage/coverage_tools.mk for more information.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

# ISSUE(76038): When targeting MSVC, Rust binaries built with both `-Z instrument-coverage` and
# `-C link-dead-code` typically crash (with a seg-fault) or at best generate an empty `*.profraw`.
# See ../instrument-coverage/coverage_tools.mk for more information.
# See ../coverage/coverage_tools.mk for more information.

-include ../instrument-coverage/coverage_tools.mk
-include ../coverage/coverage_tools.mk

BASEDIR=../instrument-coverage-cov-reports-base
SOURCEDIR=../instrument-coverage
BASEDIR=../coverage-reports-base
SOURCEDIR=../coverage

all: $(patsubst $(SOURCEDIR)/%.rs,%,$(wildcard $(SOURCEDIR)/*.rs))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/closure.rs",
"filename": "../coverage/closure.rs",
"summary": {
"functions": {
"count": 5,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/drop_trait.rs",
"filename": "../coverage/drop_trait.rs",
"summary": {
"functions": {
"count": 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/generics.rs",
"filename": "../coverage/generics.rs",
"summary": {
"functions": {
"count": 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/if.rs",
"filename": "../coverage/if.rs",
"summary": {
"functions": {
"count": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/if_else.rs",
"filename": "../coverage/if_else.rs",
"summary": {
"functions": {
"count": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/inner_items.rs",
"filename": "../coverage/inner_items.rs",
"summary": {
"functions": {
"count": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/lazy_boolean.rs",
"filename": "../coverage/lazy_boolean.rs",
"summary": {
"functions": {
"count": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/loop_break_value.rs",
"filename": "../coverage/loop_break_value.rs",
"summary": {
"functions": {
"count": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/simple_loop.rs",
"filename": "../coverage/simple_loop.rs",
"summary": {
"functions": {
"count": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/simple_match.rs",
"filename": "../coverage/simple_match.rs",
"summary": {
"functions": {
"count": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/question_mark_error_result.rs",
"filename": "../coverage/try_error_result.rs",
"summary": {
"functions": {
"count": 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/various_conditions.rs",
"filename": "../coverage/various_conditions.rs",
"summary": {
"functions": {
"count": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/while_early_return.rs",
"filename": "../coverage/while_early_return.rs",
"summary": {
"functions": {
"count": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,46 +11,46 @@
11| 1| countdown = 10;
12| 1| }
13| |
14| | mod inner_mod {
15| | const INNER_MOD_CONST: u32 = 1000;
14| | mod in_mod {
15| | const IN_MOD_CONST: u32 = 1000;
16| | }
17| |
18| | fn inner_function(a: u32) {
18| | fn in_func(a: u32) {
19| 3| let b = 1;
20| 3| let c = a + b;
21| 3| println!("c = {}", c)
22| 3| }
23| |
24| | struct InnerStruct {
25| | inner_struct_field: u32,
24| | struct InStruct {
25| | in_struct_field: u32,
26| | }
27| |
28| | const INNER_CONST: u32 = 1234;
28| | const IN_CONST: u32 = 1234;
29| |
30| | trait InnerTrait {
31| | fn inner_trait_func(&mut self, incr: u32);
30| | trait InTrait {
31| | fn trait_func(&mut self, incr: u32);
32| |
33| 1| fn default_trait_func(&mut self) {
34| 1| inner_function(INNER_CONST);
35| 1| self.inner_trait_func(INNER_CONST);
34| 1| in_func(IN_CONST);
35| 1| self.trait_func(IN_CONST);
36| 1| }
37| | }
38| |
39| | impl InnerTrait for InnerStruct {
40| | fn inner_trait_func(&mut self, incr: u32) {
41| 1| self.inner_struct_field += incr;
42| 1| inner_function(self.inner_struct_field);
39| | impl InTrait for InStruct {
40| | fn trait_func(&mut self, incr: u32) {
41| 1| self.in_struct_field += incr;
42| 1| in_func(self.in_struct_field);
43| 1| }
44| | }
45| |
46| | type InnerType = String;
46| | type InType = String;
47| |
48| 1| if is_true {
49| 1| inner_function(countdown);
49| 1| in_func(countdown);
50| 1| }
51| |
52| 1| let mut val = InnerStruct {
53| 1| inner_struct_field: 101,
52| 1| let mut val = InStruct {
53| 1| in_struct_field: 101,
54| 1| };
55| 1|
56| 1| val.default_trait_func();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
# LINK_DEAD_CODE requires ignore-msvc due to Issue #76038
LINK_DEAD_CODE=yes

-include ../instrument-coverage-cov-reports-base/Makefile
-include ../coverage-reports-base/Makefile

# ISSUE(76038): When targeting MSVC, Rust binaries built with both `-Z instrument-coverage` and
# `-C link-dead-code` typically crash (with a seg-fault) or at best generate an empty `*.profraw`.
# See ../instrument-coverage/coverage_tools.mk for more information.
# See ../coverage/coverage_tools.mk for more information.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/closure.rs",
"filename": "../coverage/closure.rs",
"summary": {
"functions": {
"count": 5,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/drop_trait.rs",
"filename": "../coverage/drop_trait.rs",
"summary": {
"functions": {
"count": 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/generics.rs",
"filename": "../coverage/generics.rs",
"summary": {
"functions": {
"count": 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/if.rs",
"filename": "../coverage/if.rs",
"summary": {
"functions": {
"count": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/if_else.rs",
"filename": "../coverage/if_else.rs",
"summary": {
"functions": {
"count": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/inner_items.rs",
"filename": "../coverage/inner_items.rs",
"summary": {
"functions": {
"count": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/lazy_boolean.rs",
"filename": "../coverage/lazy_boolean.rs",
"summary": {
"functions": {
"count": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/loop_break_value.rs",
"filename": "../coverage/loop_break_value.rs",
"summary": {
"functions": {
"count": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/simple_loop.rs",
"filename": "../coverage/simple_loop.rs",
"summary": {
"functions": {
"count": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/simple_match.rs",
"filename": "../coverage/simple_match.rs",
"summary": {
"functions": {
"count": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/question_mark_error_result.rs",
"filename": "../coverage/try_error_result.rs",
"summary": {
"functions": {
"count": 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/various_conditions.rs",
"filename": "../coverage/various_conditions.rs",
"summary": {
"functions": {
"count": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"files": [
{
"filename": "../instrument-coverage/while_early_return.rs",
"filename": "../coverage/while_early_return.rs",
"summary": {
"functions": {
"count": 1,
Expand Down
Loading

0 comments on commit 6f62766

Please sign in to comment.