• S
    Cache drops for early scope exits · 04d63ccf
    Simonas Kazlauskas 提交于
    Previously we would rebuild all drops on every early exit from a scope, which for code like:
    
    ```rust
    match x {
        a => return 1,
        b => return 2,
        ...
        z => return 27
    }
    ```
    
    would produce 27 exactly same chains of drops for each return, a O(n*m) explosion in drops.
    04d63ccf
scope.rs 27.4 KB