Controls whether we “elaborate” supertraits and so forth on the WF
predicates. This is a kind of hack to address #43784. The
underlying problem in that issue was a trait structure like:
Given an object type like SomeTrait + Send, computes the lifetime
bounds that must hold on the elided self type. These are derived
from the declarations of SomeTrait, Send, and friends – if
they declare trait SomeTrait : 'static, for example, then
'static would appear in the list.
Returns the set of obligations needed to make arg well-formed.
If arg contains unresolved inference variables, this may include
further WF obligations. However, if arg IS an unresolved
inference variable, returns None, because we are not able to
make any progress at all. This is to prevent “livelock” where we
say “$0 is WF if $0 is WF”.
Returns the obligations that make this trait reference
well-formed. For example, if there is a trait Set defined like
trait Set<K: Eq>, then the trait bound Foo: Set<Bar> is WF
if Bar: Eq.