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 a note to as_conversions #6608

Merged
merged 1 commit into from
Jan 19, 2021
Merged

Conversation

rail-rain
Copy link
Contributor

I have seen a couple of examples where there are some misunderstandings of as_conversions (1, 2 and 3). This PR adds the note that explains its purpose and relationship with other as related casts. Open question: should I list every related lints for discoverbility, or just suggest how to find these? I chose the former because there's no way to list only and all as related lints (e.g. on All the Clippt Lints, 'cast' includes some noises, but cast_ excludes some) even though I cannot guarantee the list will be updated to include future changes.


changelog: Add a note to the document of as_conversions

… to clalify its purpose.
@rust-highfive
Copy link

r? @phansch

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jan 19, 2021
@phansch
Copy link
Member

phansch commented Jan 19, 2021

@bors r+ thanks!

@bors
Copy link
Contributor

bors commented Jan 19, 2021

📌 Commit c53192c has been approved by phansch

@bors
Copy link
Contributor

bors commented Jan 19, 2021

⌛ Testing commit c53192c with merge e21270b...

@bors
Copy link
Contributor

bors commented Jan 19, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: phansch
Pushing e21270b to master...

@bors bors merged commit e21270b into rust-lang:master Jan 19, 2021
@rail-rain rail-rain deleted the note_on_as_conversions branch April 5, 2021 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants