From fc9eed4836dfc88fe2893c81b015ab440cea2ba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Mon, 8 Mar 2021 22:19:44 +0200 Subject: Use upstream cov-mark --- crates/hir_ty/src/tests/coercion.rs | 5 ++--- crates/hir_ty/src/tests/method_resolution.rs | 2 +- crates/hir_ty/src/tests/patterns.rs | 3 +-- crates/hir_ty/src/tests/regression.rs | 7 +++---- crates/hir_ty/src/tests/simple.rs | 3 +-- crates/hir_ty/src/tests/traits.rs | 5 ++--- 6 files changed, 10 insertions(+), 15 deletions(-) (limited to 'crates/hir_ty/src/tests') diff --git a/crates/hir_ty/src/tests/coercion.rs b/crates/hir_ty/src/tests/coercion.rs index 7bc6c79f3..63d9d4e0b 100644 --- a/crates/hir_ty/src/tests/coercion.rs +++ b/crates/hir_ty/src/tests/coercion.rs @@ -1,5 +1,4 @@ use expect_test::expect; -use test_utils::mark; use super::{check_infer, check_infer_with_mismatches}; @@ -381,7 +380,7 @@ fn infer_match_second_coerce() { #[test] fn coerce_merge_one_by_one1() { - mark::check!(coerce_merge_fail_fallback); + cov_mark::check!(coerce_merge_fail_fallback); check_infer( r" @@ -589,7 +588,7 @@ fn coerce_fn_item_to_fn_ptr() { #[test] fn coerce_fn_items_in_match_arms() { - mark::check!(coerce_fn_reification); + cov_mark::check!(coerce_fn_reification); check_infer_with_mismatches( r" diff --git a/crates/hir_ty/src/tests/method_resolution.rs b/crates/hir_ty/src/tests/method_resolution.rs index a9901d7b8..4e3f9a9b6 100644 --- a/crates/hir_ty/src/tests/method_resolution.rs +++ b/crates/hir_ty/src/tests/method_resolution.rs @@ -913,7 +913,7 @@ fn test() { S2.into(); } #[test] fn method_resolution_overloaded_method() { - test_utils::mark::check!(impl_self_type_match_without_receiver); + cov_mark::check!(impl_self_type_match_without_receiver); check_types( r#" struct Wrapper(T); diff --git a/crates/hir_ty/src/tests/patterns.rs b/crates/hir_ty/src/tests/patterns.rs index 2053d8f56..5da19ba5f 100644 --- a/crates/hir_ty/src/tests/patterns.rs +++ b/crates/hir_ty/src/tests/patterns.rs @@ -1,5 +1,4 @@ use expect_test::expect; -use test_utils::mark; use super::{check_infer, check_infer_with_mismatches}; @@ -197,7 +196,7 @@ fn infer_pattern_match_ergonomics() { #[test] fn infer_pattern_match_ergonomics_ref() { - mark::check!(match_ergonomics_ref); + cov_mark::check!(match_ergonomics_ref); check_infer( r#" fn test() { diff --git a/crates/hir_ty/src/tests/regression.rs b/crates/hir_ty/src/tests/regression.rs index cffe8630b..69314e245 100644 --- a/crates/hir_ty/src/tests/regression.rs +++ b/crates/hir_ty/src/tests/regression.rs @@ -1,5 +1,4 @@ use expect_test::expect; -use test_utils::mark; use super::{check_infer, check_types}; @@ -87,8 +86,8 @@ fn bug_651() { #[test] fn recursive_vars() { - mark::check!(type_var_cycles_resolve_completely); - mark::check!(type_var_cycles_resolve_as_possible); + cov_mark::check!(type_var_cycles_resolve_completely); + cov_mark::check!(type_var_cycles_resolve_as_possible); check_infer( r#" fn test() { @@ -166,7 +165,7 @@ fn infer_std_crash_1() { #[test] fn infer_std_crash_2() { - mark::check!(type_var_resolves_to_int_var); + cov_mark::check!(type_var_resolves_to_int_var); // caused "equating two type variables, ...", taken from std check_infer( r#" diff --git a/crates/hir_ty/src/tests/simple.rs b/crates/hir_ty/src/tests/simple.rs index 2947857a5..f5069eba5 100644 --- a/crates/hir_ty/src/tests/simple.rs +++ b/crates/hir_ty/src/tests/simple.rs @@ -1,5 +1,4 @@ use expect_test::expect; -use test_utils::mark; use super::{check_infer, check_types}; @@ -2314,7 +2313,7 @@ fn generic_default_depending_on_other_type_arg_forward() { #[test] fn infer_operator_overload() { - mark::check!(infer_expr_inner_binary_operator_overload); + cov_mark::check!(infer_expr_inner_binary_operator_overload); check_infer( r#" diff --git a/crates/hir_ty/src/tests/traits.rs b/crates/hir_ty/src/tests/traits.rs index 1298e5a88..528092082 100644 --- a/crates/hir_ty/src/tests/traits.rs +++ b/crates/hir_ty/src/tests/traits.rs @@ -1,5 +1,4 @@ use expect_test::expect; -use test_utils::mark; use super::{check_infer, check_infer_with_mismatches, check_types}; @@ -319,7 +318,7 @@ fn infer_from_bound_2() { #[test] fn trait_default_method_self_bound_implements_trait() { - mark::check!(trait_self_implements_self); + cov_mark::check!(trait_self_implements_self); check_infer( r#" trait Trait { @@ -1189,7 +1188,7 @@ fn impl_trait() { #[test] fn simple_return_pos_impl_trait() { - mark::check!(lower_rpit); + cov_mark::check!(lower_rpit); check_infer( r#" trait Trait { -- cgit v1.2.3