Uh oh!
There was an error while loading. Please reload this page.
Tighten the 'introduce new binding' suggestion - #104186
Conversation
rustbot
commented
Nov 9, 2022
r? @oli-obk (rustbot has picked a reviewer for you, use r? to override) |
74d112d to
952df48CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
1bd6af1 to
07381b3CompareUh oh!
There was an error while loading. Please reload this page.
07381b3 to
c69872bCompareoli-obk
commented
Nov 10, 2022
Thanks! @bors r+ rollup |
bors
commented
Nov 10, 2022
| } | ||
| self.visit_expr(lhs); | ||
| self.diagnostic_metadata.is_assign_rhs = true; | ||
| self.diagnostic_metadata.in_assignment = None; |
There was a problem hiding this comment.
Should we reinstate the overwritten value, instead of putting None in all cases?
There was a problem hiding this comment.
we only care about the lhs of assignment.
There was a problem hiding this comment.
And the backup state is not important, the check logic is invoked by visit_expr.
…earth Rollup of 9 pull requests Successful merges: - rust-lang#101939 (Add loongarch64 abi support) - rust-lang#103863 (Use `TraitEngine` in more places, restrict visibility of `FulfillmentCtxt` constructor) - rust-lang#104036 (Suggest `is_some` when we've found `Option` but expected `bool`) - rust-lang#104060 (Make `Hash`, `Hasher` and `BuildHasher` `#[const_trait]` and make `Sip` const `Hasher`) - rust-lang#104077 (Use aapcs for efiapi calling convention on arm) - rust-lang#104186 (Tighten the 'introduce new binding' suggestion) - rust-lang#104194 (`EarlyBinder` docs) - rust-lang#104233 (Don't ICE when encountering `ConstKind::Error` in `RequiredConstsVisitor`) - rust-lang#104235 (Use `const_error_with_guaranteed` more) Failed merges: - rust-lang#104078 (Print "Checking/Building ..." message even when --dry-run is passed) - rust-lang#104169 (Migrate `:target` rules to use CSS variables) r? `@ghost` `@rustbot` modify labels: rollup
Fixes#104086