-
Notifications
You must be signed in to change notification settings - Fork 13.9k
add comments in check_expr_field #134148
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 comments in check_expr_field #134148
Conversation
58aadb8 to
66b68a8
Compare
This comment has been minimized.
This comment has been minimized.
66b68a8 to
57f8271
Compare
| } | ||
| } | ||
|
|
||
| // We failed to check the expression, report an error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment doesn't really describe what this is doing. It's attempting to emit an error if we end up derefing to an infer var, like calling .field on a base type of &_.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That comment was more general, as in "ok we're no longer in the happy path"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well it's useful regardless to document the random structural resolve call. Pls do that :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the comment
|
Then r=me |
57f8271 to
55806e5
Compare
|
@bors r=compiler-errors |
1 similar comment
|
@bors r=compiler-errors |
|
@bors rollup |
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#132975 (De-duplicate and improve definition of core::ffi::c_char) - rust-lang#133598 (Change `GetManyMutError` to match T-libs-api decision) - rust-lang#134148 (add comments in check_expr_field) - rust-lang#134163 (coverage: Rearrange the code for embedding per-function coverage metadata) - rust-lang#134165 (wasm(32|64): update alignment string) - rust-lang#134170 (Subtree update of `rust-analyzer`) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#134148 - dev-ardi:cleanup_check_field_expr, r=compiler-errors add comments in check_expr_field Nothing special, just a few comments and a couple of small cleanups.
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#132975 (De-duplicate and improve definition of core::ffi::c_char) - rust-lang#133598 (Change `GetManyMutError` to match T-libs-api decision) - rust-lang#134148 (add comments in check_expr_field) - rust-lang#134163 (coverage: Rearrange the code for embedding per-function coverage metadata) - rust-lang#134165 (wasm(32|64): update alignment string) - rust-lang#134170 (Subtree update of `rust-analyzer`) r? `@ghost` `@rustbot` modify labels: rollup
Nothing special, just a few comments and a couple of small cleanups.