Skip to content
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

Better error diagnostics under -explain-cyclic #20251

Merged
merged 3 commits into from
Apr 26, 2024

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Apr 23, 2024

Also report type-checked right hand sides and export expansions.

Streamline trace-handling code using inline functions.

Fixes #20245

Also report type-checked right hand sides and export expansions.

Streamline trace-handling code using inline functions.

Fixes scala#20245
@odersky odersky requested a review from mbovel April 23, 2024 17:43
@odersky odersky self-assigned this Apr 23, 2024
@odersky odersky added this to the mbovel milestone Apr 23, 2024
@odersky odersky assigned mbovel and unassigned odersky Apr 23, 2024
Copy link
Member

@mbovel mbovel 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 to me!

ctx.property(CyclicReference.Trace).isDefined

def pushTrace(info: TraceElement)(using Context): Unit =
private def pushTrace(info: Context ?=> String)(using Context): Unit =
Copy link
Member

Choose a reason for hiding this comment

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

Couldn't the type of info stay `TraceElement?

@mbovel mbovel assigned odersky and unassigned mbovel Apr 25, 2024
@odersky odersky merged commit f026720 into scala:main Apr 26, 2024
19 checks passed
@odersky odersky deleted the fix-20245 branch April 26, 2024 09:35
@Kordyjan Kordyjan modified the milestones: mbovel, 3.5.0 May 10, 2024
WojciechMazur added a commit that referenced this pull request Jul 6, 2024
)

Backports #20251 to the LTS branch.

PR submitted by the release tooling.
[skip ci]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incremental compilation leads to Cyclic Reference Error
3 participants