mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Remove extra inference test
This commit is contained in:
parent
44cf7b34fe
commit
8b612251fd
3 changed files with 0 additions and 26 deletions
|
@ -11,7 +11,6 @@ test_utils::marks!(
|
||||||
match_ergonomics_ref
|
match_ergonomics_ref
|
||||||
trait_resolution_on_fn_type
|
trait_resolution_on_fn_type
|
||||||
infer_while_let
|
infer_while_let
|
||||||
match_complex_arm_ty
|
|
||||||
match_first_arm_never
|
match_first_arm_never
|
||||||
match_second_arm_never
|
match_second_arm_never
|
||||||
match_all_arms_never
|
match_all_arms_never
|
||||||
|
|
|
@ -1121,7 +1121,6 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> {
|
||||||
match_ty.clone()
|
match_ty.clone()
|
||||||
} else {
|
} else {
|
||||||
tested_by!(match_no_never_arms);
|
tested_by!(match_no_never_arms);
|
||||||
tested_by!(match_complex_arm_ty);
|
|
||||||
expected.ty
|
expected.ty
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3599,30 +3599,6 @@ mod branching_with_never_tests {
|
||||||
use super::type_at;
|
use super::type_at;
|
||||||
use test_utils::covers;
|
use test_utils::covers;
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn match_complex_arm_ty() {
|
|
||||||
covers!(match_complex_arm_ty);
|
|
||||||
let t = type_at(
|
|
||||||
r#"
|
|
||||||
//- /main.rs
|
|
||||||
enum Option<T> {
|
|
||||||
Some(T),
|
|
||||||
None
|
|
||||||
}
|
|
||||||
|
|
||||||
fn test(a: i32) {
|
|
||||||
let i = match a {
|
|
||||||
2 => Option::Some(2.0),
|
|
||||||
_ => loop {},
|
|
||||||
};
|
|
||||||
i<|>
|
|
||||||
()
|
|
||||||
}
|
|
||||||
"#,
|
|
||||||
);
|
|
||||||
assert_eq!(t, "Option<f64>");
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn match_first_arm_never() {
|
fn match_first_arm_never() {
|
||||||
covers!(match_first_arm_never);
|
covers!(match_first_arm_never);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue