Commit Graph

94734 Commits

Author SHA1 Message Date
Alexander Shabalin e6e7feb985 [K/N] Do not check for external calls in SpinLock<Ignore>
Merge-request: KT-MR-7099
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-09-13 13:37:12 +00:00
Simon Ogorodnik 95c1892ef1 K1. Fix error message for BUILDER_INFERENCE_MULTI_LAMBDA_RESTRICTION 2022-09-13 13:01:58 +00:00
Andrey Uskov d223dafc45 Don't wrap ProcessCanceledException with other exceptions
ProcessCanceledException indicates that the compilation process was
terminated by user. This kind of exception should not be wrapped anyhow
in order to be handled on toplevel in CLICompiler.
#KT-38483 Fixed
2022-09-13 10:32:49 +00:00
Mikhail Glukhikh 5fcb18ac2b Revert "[FE 1.0] Resolve this and super calls through the new type inference infra"
This reverts commit bab8047bb3.
2022-09-13 09:09:01 +00:00
Mikhail Glukhikh f35cebbc25 Revert "[FE 1.0] Resolve special construct calls through the new type inference infra"
This reverts commit e66cc9a639.
2022-09-13 09:09:01 +00:00
Mikhail Glukhikh fc0058d471 Revert "[FE 1.0] Resolve constructor calls through the new type inference infra"
This reverts commit 0070c234ce.
2022-09-13 09:09:00 +00:00
Mikhail Glukhikh c699896b0f Revert "[FE 1.0] Resolve collection literals through the new type inference infra"
This reverts commit a542de715a.
2022-09-13 09:09:00 +00:00
Mikhail Glukhikh 707bfbed19 Revert "[FE 1.0] Resolve equal calls through the new type inference infra"
This reverts commit a74c221729.
2022-09-13 09:09:00 +00:00
Mikhail Glukhikh a9b8f6715b Revert "[FE 1.0] Resolve setters through the new type inference infra"
This reverts commit 6e191147b9.
2022-09-13 09:09:00 +00:00
Mikhail Glukhikh 8be08d903b Revert "K1: don't report UNRESOLVED_WITH_TARGET on hidden setters"
This reverts commit e20efc1398.
2022-09-13 09:08:59 +00:00
Mikhail Glukhikh f4e6c1c9c5 Revert "K1: cleanup new inference constructor resolve in CallResolverUtil"
This reverts commit ec055eb418.
2022-09-13 09:08:59 +00:00
Mikhail Glukhikh 41abe7b8f7 Revert "K1: unify code around resolveCallWithGivenDescriptors"
This reverts commit 0bd06b4095.
2022-09-13 09:08:59 +00:00
Mikhail Glukhikh 60cee9f1b7 Revert "[FE 1.0] Get rid of old inference stuff from CallResolver"
This reverts commit bd665dc5d9.
2022-09-13 09:08:59 +00:00
Mikhail Glukhikh 569d6d28b7 Revert "[FE 1.0] Get rid of the old builder inference support"
This reverts commit 1c91e3a606.
2022-09-13 09:08:58 +00:00
Mikhail Glukhikh 087bda52e6 Revert "[FE 1.0] Get rid of the old inference call completer"
This reverts commit 2c7a442cbd.
2022-09-13 09:08:58 +00:00
Mikhail Glukhikh ee58de0680 Revert "[FE 1.0] Get rid of deprecated interceptCandidates in CallResolutionInterceptorExtension"
This reverts commit afaf20aea3.
2022-09-13 09:08:58 +00:00
Mikhail Glukhikh 2ac25cfa8e Revert "[FE 1.0] Get rid of CandidateResolver"
This reverts commit 4ea08a59db.
2022-09-13 09:08:58 +00:00
Mikhail Glukhikh f35ced3666 Revert "[FE 1.0] Get rid of GenericCandidateResolver"
This reverts commit 941a33a184.
2022-09-13 09:08:57 +00:00
Mikhail Glukhikh 2d17864fcb Revert "[FE 1.0] Get rid of OldResolutionCandidate and its usages"
This reverts commit d89fa8dea9.
2022-09-13 09:08:57 +00:00
Mikhail Glukhikh b12dffa593 Revert "[FE 1.0] Get rid of NewResolutionOldInference"
This reverts commit 34a05105ef.
2022-09-13 09:08:57 +00:00
Mikhail Glukhikh e36091b926 K2: introduce even more readable renderer for types in messages
#KT-53343 Fixed
2022-09-13 09:05:48 +00:00
Mikhail Glukhikh 3848be596e Add test for KT-53343 2022-09-13 09:05:48 +00:00
pyos acce055fc4 FIR: fix incorrect handling of suspend function typealiases again
The previous attempt stopped this code from throwing an exception during
serialization, but the arity is still wrong so an exception is now throw
when reading the serialized type.

^KT-50997 Fixed
2022-09-12 17:45:40 +02:00
Mikhail Glukhikh 3a60e2cde5 K1: add link to the issue (KT-48162) for deprecation message 2022-09-12 17:45:34 +02:00
Alexander Likhachev 2b26d1cc02 [Gradle, JS] Disable KotlinJsDce caching when it's in dev mode
#KT-53788 Fixed
2022-09-12 14:55:19 +00:00
Pavel Mikhailovskii fe5a6fd511 Disallow non-local break/continue in crossinline lambdas 2022-09-12 13:26:19 +00:00
Svyatoslav Scherbina 79885c770d Bump Kotlin/Native version to 1.8.0-dev-3049 2022-09-12 12:56:38 +00:00
Ilya Muradyan 551a481dc5 [Scripting] Add partial transitive resolution to Maven resolver 2022-09-12 14:11:04 +02:00
Dmitriy Novozhilov a78d43c1ec [Lombok] Support RawTypes in fields wtih @Singular in K2 version
^KT-53657 Fixed
2022-09-12 11:29:17 +00:00
Dmitriy Novozhilov 06119a4670 [Lombok] Fix support of Iterable field marked with @Singular
^KT-53647 Fixed
2022-09-12 11:29:17 +00:00
Dmitriy Novozhilov 4ab79ed97d [Lombok] Fix behavior of ignoreNullCollections parameter of @Singular
^KT-53724 Fixed
^KT-53721 Fixed
2022-09-12 11:29:16 +00:00
Dmitriy Novozhilov 2aadaee69f [Lombok] Properly support Guava collections with @Singular
^KT-53683 Fixed
2022-09-12 11:29:16 +00:00
Dmitriy Novozhilov 69a857649f [Build] Exclude :tools:kotlin-project-model-tests-generator from JPS build 2022-09-12 11:29:15 +00:00
Anton Lakotka 8acc6c9093 [Gradle][MPP] Mark sourceSet field as transient in CInteropMetadataDependencyTransformationTask
^KT-52726 Verification Pending
2022-09-12 10:58:47 +00:00
Sebastian Sellmair a914750108 [Gradle][MPP] Fix MetadataMappedCompilationDetails.compilation using wrong name for compilation
^KT-52726 Verification Pending
2022-09-12 10:58:47 +00:00
Sebastian Sellmair 60723bd59f [Gradle][MPP][Minor] KotlinTargetConfigurator: Use Callable instead of lambda
^KT-52726 Verification Pending
2022-09-12 10:58:47 +00:00
Sebastian Sellmair 7fae9a1b73 [Gradle][MPP] Remove AbstractKotlinTargetConfigurator.createDefaultSourceSets
^KT-52726 Verification Pending
2022-09-12 10:58:47 +00:00
Sebastian Sellmair 67fc4f0ed6 [Gradle][MPP] Replace .kotlinSourceSetsIncludingDefault with .kotlinSourceSets
^KT-52726 Verification Pending
^KT-45412 Verification Pending
2022-09-12 10:58:46 +00:00
Sebastian Sellmair f4eba62f8c [Gradle][MPP] Ensure presence of .defaultSourceSet when creating kotlinCompilations
This will finally make calls to KotlinCompilation.defaultSourceSet
or sourceSets.getByName(compilation.defaultSourceSetName) safe.

This will also enable removing the `kotlinSourceSetsIncludingDefault`
pitfall

^KT-52726 Verification Pending
2022-09-12 10:58:46 +00:00
Sebastian Sellmair 5f085f0448 [Gradle][MPP] Move KotlinCompilationsModuleGroupsTest into functionalTest
^KT-52726 Verification Pending
2022-09-12 10:58:46 +00:00
Sebastian Sellmair 8bff1dee37 [Gradle][MPP] Move SourceSetVisibilityInferenceTest into functionalTest
^KT-52726 Verification Pending
2022-09-12 10:58:46 +00:00
Sebastian Sellmair ea483c01fe [Gradle][MPP] Replace InternalKotlinSourceSet.addCompilation by exposing mutable .compilations
This requires to make MutableObservableSet public as well, since
public implementations will inherit. The MutableObservableSet
therefore move its implementation to an internal
MutableObservableSetImpl

^KT-52726 Verification Pending
2022-09-12 10:58:46 +00:00
Sebastian Sellmair 84a22256f9 [Gradle][MPP] AbstractCompilationDetails.source: Return early if source was already added
^KT-52726 Verification Pending
2022-09-12 10:58:45 +00:00
Sebastian Sellmair 0b9c5b1cf0 [Gradle][MPP] CompilationDetails: Rename kotlinSourceSetsClosure to allKotlinSourceSets
^KT-52726 Verification Pending
2022-09-12 10:58:45 +00:00
Sebastian Sellmair 0f5a298689 [Gradle][MPP] InternalKotlinSourceSet: Provide class information on casting failure
^KT-52726 Verification Pending
2022-09-12 10:58:45 +00:00
Sebastian Sellmair 63232b1849 [Gradle][MPP] Implement assertAllImplementationsAlsoImplement assertion function
^KT-52726 Verification Pending
2022-09-12 10:58:45 +00:00
Sebastian Sellmair 134ed4bae1 [Gradle][MPP] ObservableSet.addAll: Incrementally add elements and invoke listeners
^KT-52726 Verification Pending
2022-09-12 10:58:44 +00:00
Sebastian Sellmair 74b2285877 [Gradle][MPP] Implement additional InternalKotlinSourceSetTests
.. for withDependsOnClosure and compilations

^KT-52726 Verification Pending
2022-09-12 10:58:44 +00:00
Sebastian Sellmair a0d350fad4 [Gradle][MPP] ObservableSet: Implement equals/hashCode/toString
^KT-52726 Verification Pending
2022-09-12 10:58:44 +00:00
Sebastian Sellmair dc8a6b8def [Gradle][MPP] Replace slow CompilationSourceSetUtil with InternalKotlinSourceSet api
^KT-52726 Verification Pending
2022-09-12 10:58:44 +00:00