a-mir-formality
a-mir-formality copied to clipboard
OOM when evaluating `for<'b> &'a &'a (): 'b`
The following test doesn't terminate. Same when when evaluating for<'b> &'b &'b (): 'a.
diff --git a/src/rust/test/wf--outlives.rkt b/src/rust/test/wf--outlives.rkt
index 0e11536..5d1623a 100644
--- a/src/rust/test/wf--outlives.rkt
+++ b/src/rust/test/wf--outlives.rkt
@@ -16,6 +16,9 @@
(struct NoRef[(type T) (lifetime a)]
where []
{ })
+ (struct NestedRef[(lifetime a) (lifetime b)]
+ where [(a : b)]
+ { })
})] C)))
]
@@ -47,5 +50,16 @@
)
)
))
+
+ (traced '()
+ (test-term-false
+ (rust:can-prove-where-clause-in-program
+ Rust/Program
+ (∀ [(lifetime a)]
+ where []
+ (for[(lifetime b)] ((NestedRef < a a >) : b))
+ )
+ )
+ ))
)
)
This doesn't seem relevant to the current rust codebase anymore. I guess this can be closed?
Given that this is a test case that caused a hang in the old impl, it may be useful to add it to the new one to make sure we don't encounter the same issue
okay, I can take a look to see if it's represented in the current test cases