Skip to content

Upstream changed from 'master' to 'main' #1

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

Closed
wants to merge 3,005 commits into from

Conversation

michelou
Copy link
Owner

Synchronize 'scala3-pandoc' with upstream main.

mbovel and others added 30 commits January 20, 2022 12:56
…marks

Add compiletime benchmarks and fix performance regression
add eval (-e) expression evaluation to command line
Split dotty.tests.filter by comma, to select multiple
Format compiler crash stack traces
I tried to extend specialization to all context functions, not just ones of 0 arity.
But that runs into problems for dependent context functions, since the necessary casts
get complicated. Since context functions over primitive types are an anti-pattern anyway
I don't think we need to optimize this case, after all.
 - Split out forward reference checks and cross version (i.e. experimental/deprecated) checks
   into their own miniphases. These have nothing to do with the core tasks of RefChecks.
 - Move RefChecks earlier in the pipeline, so that it is not affected by ElimByName's questionable
   type manipulations.
Fix byte code generation for by-name parameters
Perform the overriding checks after elimByName. I observed some problem with
catsEffect2, where a super accessor method with a `() ?=> T` parameter was compared with a
corresponding super accessor method with a `=> T` parameter. One of these methods was generated
before elimByName, the other after. So comparing them at phase elimRepeated + 1 gave two different
types. The problem is fixed by comparing after elimByName, which means that the type of the second
method is converted to match the first.
Fix checkNoModuleClash & avoid types with less precision loss
The error message falsely referred to missing support for early definitions
in the example, but none were present.

Fixes #14326
Don't lift try-catch statements that are already in local functions
Sporarum and others added 26 commits February 15, 2022 13:01
Scaladoc: Add member position IDs to anchors in searchbar
Scaladoc: Fix rendering dependent function types
Scaladoc: Follow renames in content contributors script
fix typo in docs example capability checking
Set zero span for synthetic enum import selector
When we create a synthetic companion object, for exmaple for enums, all the value definitions are put into it and the there are actually multiple trees that contain the position we are itnerested in.

Now, NavigateAST.pathTo takes in multiple trees since the method is already able to find the best fit.
Parse empty arguments in (invalid) `Apply` more often
Disable type simplify in unpickler
Search all source trees for a given span
Set zero span for synthetic tuple type
Find inline calls inserted in synthetic members
@michelou michelou closed this Feb 18, 2022
@michelou
Copy link
Owner Author

merge failure

michelou pushed a commit that referenced this pull request Jan 22, 2024
`given ... with` or `given ... = new { ... }` kinds of definitions now follow
the old rules. This allows recursive `given...with` definitions as they are
found in protoQuill.

We still have the old check in a later phase against directly recursive methods.
Of the three loops in the original i15474 we now detect #2 and #3 with new new
restrictions. #1 slips through since it is a loop involving a `given...with` instance
of `Conversion`, but is caught later with the recursive method check.

Previously tests #1 and #3 were detected with the recursive methods check and #2 slipped
through altogether.

The new rules are enough for defining simple givens with `=` without fear of looping.
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.