Skip to content

Conversation

@chenyukang
Copy link
Member

@chenyukang chenyukang commented Jan 17, 2026

Fixes #151149

r? @estebank

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jan 17, 2026
// and the RHS looks like it could be an independent expression.
if let ExprKind::Binary(op, lhs, rhs_inner) = &rhs.kind
&& is_multiline(lhs.span, rhs_inner.span)
&& matches!(op.node, |BinOpKind::Mul| BinOpKind::BitAnd)
Copy link
Member Author

Choose a reason for hiding this comment

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

not sure whether this is too strict.

@chenyukang chenyukang force-pushed the yukang-fix-const-recover-151149 branch from 0851ad6 to b1dcdd1 Compare January 17, 2026 16:52
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. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple errors on binding missing ; followed by implicitly returning a borrow of that binding

3 participants