Closed A4-Tacks closed 2 weeks ago
Can an optional feature be added: when viewing HoverDoc of struct, etc., display whether the variance method of their lifetime param is covariant invariant or contravariant
struct Foo<'a>(fn(&'a ())); struct Bar<'a>(fn() -> &'a ()); struct Baz<'a>(fn(&'a ()) -> &'a ());
Hover Doc Output
struct Foo<'a> // size = 8, align = 0x8 --- 'a: contravariant
struct Bar<'a> // size = 8, align = 0x8 --- 'a: covariant
struct Baz<'a> // size = 8, align = 0x8 --- 'a: invariant
Duplicate of https://github.com/rust-lang/rust-analyzer/issues/13073
Can an optional feature be added: when viewing HoverDoc of struct, etc., display whether the variance method of their lifetime param is covariant invariant or contravariant
Example
Hover Doc Output