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

Handle structs as scrutinee for match expressions #2958

Merged
merged 2 commits into from
May 15, 2024

Commits on Apr 21, 2024

  1. Handle structs as scrutinee for match expressions

    gcc/rust/ChangeLog:
    
    	* backend/rust-compile-expr.cc (check_match_scrutinee): Handle structs
    
    Signed-off-by: Nobel Singh <nobel2073@gmail.com>
    nobel-sh committed Apr 21, 2024
    Configuration menu
    Copy the full SHA
    3e79fc8 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2024

  1. Add testcases for handling struct as scrutinee for match expr

    gcc/testsuite/ChangeLog:
    
    	* rust/compile/issue-2906.rs: New test.
    	* rust/execute/torture/issue-2906.rs: New test.
    
    Signed-off-by: Nobel Singh <nobel2073@gmail.com>
    nobel-sh committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    1906607 View commit details
    Browse the repository at this point in the history