• J
    Add support for patterns referencing non-trivial statics · fba11948
    Jakub Wieczorek 提交于
    This is accomplished by rewriting static expressions into equivalent patterns.
    This way, patterns referencing static variables can both participate
    in exhaustiveness analysis as well as be compiled down into the appropriate
    branch of the decision trees that match expressions are codegened to.
    
    Fixes #6533.
    Fixes #13626.
    Fixes #13731.
    Fixes #14576.
    Fixes #15393.
    fba11948
const_eval.rs 20.7 KB