Skip to content

fix: infer byte string pattern as &[u8] when matched against slices #12992

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

Merged
merged 1 commit into from
Aug 10, 2022

Conversation

lowr
Copy link
Contributor

@lowr lowr commented Aug 10, 2022

Fixes #12630

c.f. rustc_typeck

@Veykril
Copy link
Member

Veykril commented Aug 10, 2022

Thanks!
@bors r+

@bors
Copy link
Contributor

bors commented Aug 10, 2022

📌 Commit ffc6b42 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Aug 10, 2022

⌛ Testing commit ffc6b42 with merge e70681f...

@bors
Copy link
Contributor

bors commented Aug 10, 2022

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing e70681f to master...

@bors bors merged commit e70681f into rust-lang:master Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

False positive type mismatch on matching a slice
3 participants