mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Add cycle recovery for generic predicates
This commit is contained in:
parent
cf6809645e
commit
3ca40f7c08
3 changed files with 10 additions and 8 deletions
|
@ -4718,10 +4718,6 @@ fn test() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
// FIXME this is currently a Salsa panic; it would be nicer if it just returned
|
||||
// in Unknown, and we should be able to do that once Salsa allows us to handle
|
||||
// the cycle. But at least it doesn't overflow for now.
|
||||
#[should_panic]
|
||||
fn unselected_projection_in_trait_env_cycle_1() {
|
||||
let t = type_at(
|
||||
r#"
|
||||
|
@ -4742,10 +4738,6 @@ fn test<T: Trait>() where T: Trait2<T::Item> {
|
|||
}
|
||||
|
||||
#[test]
|
||||
// FIXME this is currently a Salsa panic; it would be nicer if it just returned
|
||||
// in Unknown, and we should be able to do that once Salsa allows us to handle
|
||||
// the cycle. But at least it doesn't overflow for now.
|
||||
#[should_panic]
|
||||
fn unselected_projection_in_trait_env_cycle_2() {
|
||||
let t = type_at(
|
||||
r#"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue