Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for the drop behavior of some control flow constructs #100526

Merged
merged 1 commit into from
Aug 15, 2022

Commits on Aug 14, 2022

  1. Add tests for the drop behavior of some control flow constructs

    In rust-lang#100513 it was shown that the drop behavior of let_chains is not correct
    currently. Since drop behavior is something pretty subtle, this adds
    explicit tests for the drop behavior of `if`, `if let` and `match` to
    make sure that it does not regress in the future.
    
    The `println!`s were left in to make debugging easier in case something
    goes wrong, but they are not required for the test.
    Noratrieb committed Aug 14, 2022
    Configuration menu
    Copy the full SHA
    f6c2816 View commit details
    Browse the repository at this point in the history