aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty/src/tests.rs
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2019-11-30 11:39:21 +0000
committerFlorian Diebold <[email protected]>2019-11-30 11:57:32 +0000
commit3ca40f7c08718a44c6d08d2cbe060244340e7157 (patch)
treeac206c8e3303a151b0ef06a8de2c6c68acfd2fdd /crates/ra_hir_ty/src/tests.rs
parentcf6809645e2327e20edd30eb535d4f06fa116b5c (diff)
Add cycle recovery for generic predicates
Diffstat (limited to 'crates/ra_hir_ty/src/tests.rs')
-rw-r--r--crates/ra_hir_ty/src/tests.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/crates/ra_hir_ty/src/tests.rs b/crates/ra_hir_ty/src/tests.rs
index b72f0f279..552eb8f75 100644
--- a/crates/ra_hir_ty/src/tests.rs
+++ b/crates/ra_hir_ty/src/tests.rs
@@ -4718,10 +4718,6 @@ fn test() {
4718} 4718}
4719 4719
4720#[test] 4720#[test]
4721// FIXME this is currently a Salsa panic; it would be nicer if it just returned
4722// in Unknown, and we should be able to do that once Salsa allows us to handle
4723// the cycle. But at least it doesn't overflow for now.
4724#[should_panic]
4725fn unselected_projection_in_trait_env_cycle_1() { 4721fn unselected_projection_in_trait_env_cycle_1() {
4726 let t = type_at( 4722 let t = type_at(
4727 r#" 4723 r#"
@@ -4742,10 +4738,6 @@ fn test<T: Trait>() where T: Trait2<T::Item> {
4742} 4738}
4743 4739
4744#[test] 4740#[test]
4745// FIXME this is currently a Salsa panic; it would be nicer if it just returned
4746// in Unknown, and we should be able to do that once Salsa allows us to handle
4747// the cycle. But at least it doesn't overflow for now.
4748#[should_panic]
4749fn unselected_projection_in_trait_env_cycle_2() { 4741fn unselected_projection_in_trait_env_cycle_2() {
4750 let t = type_at( 4742 let t = type_at(
4751 r#" 4743 r#"