Uh oh!
There was an error while loading. Please reload this page.
Diagnostic tweaks - #85102
Conversation
rust-highfive
commented
May 9, 2021
r? @lcnr (rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
this code seems really fragile 🤔
can you instead check the parent which should be a Match expr with MatchSource::WhileDesugar? at least that's what i expect
There was a problem hiding this comment.
We can't do this because this is not a WhileDesugar. It would be if we had an while let, but we instead have an while.
There was a problem hiding this comment.
An alternative would be to keep global state with all of the HirIds for which we should silence these errors 🤔
Uh oh!
There was an error while loading. Please reload this page.
lcnr
commented
May 24, 2021
I am not able to review any PRs in the near future. r? @varkor |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
695ac5e to
4ed4719Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
028eed7 to
4791472Compare
This comment has been minimized.
This comment has been minimized.
173b6cd to
8ffc3aeComparebors
commented
Nov 25, 2021
💔 Test failed - checks-actions |
This comment has been minimized.
This comment has been minimized.
matthiaskrgr
commented
Nov 25, 2021
Clippy tests need an update: |
* Do not emit unnecessary E0308 after E0070 * Show fewer errors on `while let` missing `let` * Hide redundant E0308 on `while let` missing `let` * Point at binding definition when possible on invalid assignment * do not point at closure twice * do not suggest `if let` for literals in lhs * account for parameter types
d4e5cf4 to
2e1792aCompareestebank
commented
Nov 25, 2021
@bors r=oli-obk |
bors
commented
Nov 25, 2021
📌 Commit 2e1792a has been approved by |
…-obk Diagnostic tweaks * On type mismatch caused by assignment, point at the source of the expectation * Hide redundant errors * Suggest `while let` when `let` is missing in some cases
…-obk Diagnostic tweaks * On type mismatch caused by assignment, point at the source of the expectation * Hide redundant errors * Suggest `while let` when `let` is missing in some cases
…-obk Diagnostic tweaks * On type mismatch caused by assignment, point at the source of the expectation * Hide redundant errors * Suggest `while let` when `let` is missing in some cases
bors
commented
Nov 26, 2021
bors
commented
Nov 26, 2021
☀️ Test successful - checks-actions |
rust-timer
commented
Nov 26, 2021
Finished benchmarking commit (9adfd9d): comparison url. Summary: This benchmark run did not return any relevant changes. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
while letwhenletis missing in some cases