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

combined match arms don't get separate branch coverage #386

Open
jonleivent opened this issue Sep 23, 2024 · 1 comment
Open

combined match arms don't get separate branch coverage #386

jonleivent opened this issue Sep 23, 2024 · 1 comment
Labels
C-upstream-bug Category: This is a bug of compiler or dependencies (the fix may require action in the upstream)

Comments

@jonleivent
Copy link

When match arms are combined with |, the combined arm is not seen by llvm-cov as having multiple branches. Note that clippy will flag them when not combined if they can be combined.

@taiki-e
Copy link
Owner

taiki-e commented Sep 23, 2024

I think this will be supported in rust-lang/rust#124154 or rust-lang/rust#130744.

@taiki-e taiki-e added the C-upstream-bug Category: This is a bug of compiler or dependencies (the fix may require action in the upstream) label Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-upstream-bug Category: This is a bug of compiler or dependencies (the fix may require action in the upstream)
Projects
None yet
Development

No branches or pull requests

2 participants