Expand description

The multiple_supertrait_upcastable lint detects when an object-safe trait has multiple supertraits.


trait A {}
trait B {}

trait C: A + B {}



To support upcasting with multiple supertraits, we need to store multiple vtables and this can result in extra space overhead, even if no code actually uses upcasting. This lint allows users to identify when such scenarios occur and to decide whether the additional overhead is justified.