• A
    Refactor is_uninhabited · 7946597f
    Andrew Cann 提交于
    We now cache the inhabitedness of types in the GlobalCtxt.
    
    Rather than calculating whether a type is visibly uninhabited from a given
    NodeId we calculate the full set of NodeIds from which a type is visibly
    uninhabited then cache that set. We can then use that to answer queries about
    the inhabitedness of a type relative to any given node.
    7946597f
simplify.rs 5.8 KB