Skip to content

Support FnPtr trait #798

New issue

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

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

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jun 24, 2023
Merged

Support FnPtr trait #798

merged 1 commit into from
Jun 24, 2023

Conversation

lowr
Copy link
Contributor

@lowr lowr commented Jun 24, 2023

This PR implements support for FnPtr trait added by rust-lang/rust#108080. Since that PR also changed some trait impls for function pointer types in core to make use of FnPtr, rust-analyzer needs this to adapt to them.

Unlike other built-in traits, I didn't add a new mod specifically for FnPtr, because we only need to check if the type is a TyKind::Function and nothing else.

@compiler-errors
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Jun 24, 2023

📌 Commit fa049a6 has been approved by compiler-errors

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jun 24, 2023

⌛ Testing commit fa049a6 with merge 9318f7f...

@bors
Copy link
Contributor

bors commented Jun 24, 2023

☀️ Test successful - checks-actions
Approved by: compiler-errors
Pushing 9318f7f to master...

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants