Skip to content

Book: Improve type checking and lint passes chapters #10653

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 2 commits into from
Apr 16, 2023

Conversation

flip1995
Copy link
Member

  • Adds the lint passes chapter to the index.
  • Moves additional reading material for beginners to the front page of the development section.
  • Clarify some details in hir::Ty vs ty::Ty.

@blyxyas I started reviewing the chapters that were already merged. Great work. I liked the additional reading chapter so much, that I moved it front and center. Other than that I only had some minor corrections to make. Please review.

r? @llogiq

changelog: none

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Apr 16, 2023
Copy link
Contributor

@llogiq llogiq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, solid improvements.

I'd put the warning into its own warning box.


you can use the [`hir_ty_to_ty`][hir_ty_to_ty] function to convert from a `hir::Ty` to a `ty::Ty`
To get from a `hir::Ty` to a `ty::Ty`, you can use the [`hir_ty_to_ty`][hir_ty_to_ty] function outside of bodies or
outside of bodies the [`TypeckResults::node_type()`][node_type] method. Don't use `hir_ty_to_ty` inside of bodies,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that would warrant it's own warning ⚠️ symbol.

Adds the lint passes chapter to the index.

Moves additional reading material for beginners to the front page of the
development section.

Clarify some details in hir::Ty vs ty::Ty.
@flip1995 flip1995 force-pushed the book-type_passes_corrections branch from 45c3173 to fbb69de Compare April 16, 2023 19:00
@llogiq
Copy link
Contributor

llogiq commented Apr 16, 2023

Cool stuff!

@bors r+

@bors
Copy link
Contributor

bors commented Apr 16, 2023

📌 Commit b842e99 has been approved by llogiq

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Apr 16, 2023

⌛ Testing commit b842e99 with merge a34e75b...

@bors
Copy link
Contributor

bors commented Apr 16, 2023

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

@blyxyas
Copy link
Member

blyxyas commented Apr 17, 2023

Great work

Thanks, but like 90% of this PRs are from @nahuakang, I'm just fixing some typos and actively fixing reviews and going through the PR process. The only full paragraph that I've written was "phrased weirdly" 😅

@flip1995 flip1995 deleted the book-type_passes_corrections branch April 18, 2023 00:27
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.

5 participants