Skip to content

Implicit conversions - #4

Merged
johnno1962 merged 35 commits into
implicit-conversion2from
implicit-conversions
May 15, 2026
Merged

Implicit conversions#4
johnno1962 merged 35 commits into
implicit-conversion2from
implicit-conversions

Conversation

@johnno1962

Copy link
Copy Markdown

No description provided.

johnno1962and others added 30 commits May 14, 2026 17:33
…gling ptr, reject throws/async inits, validate generic reqs, preserve toType optionals, use allowMissing=false
Agent-Logs-Url: https://github.com/ObservedObject/swift/sessions/7c4497a9-233d-4f7b-ba21-fb1616a43c6b
Co-authored-by: johnno1962 <1786033+johnno1962@users.noreply.github.com>
…k keeping NSString alive
Agent-Logs-Url: https://github.com/ObservedObject/swift/sessions/8c169c2f-6d75-44d8-b9e1-4080d4638457
Co-authored-by: johnno1962 <1786033+johnno1962@users.noreply.github.com>
…fix salvage crash
Agent-Logs-Url: https://github.com/ObservedObject/swift/sessions/17e202b5-2f54-436e-a047-ca10d725541d
Co-authored-by: johnno1962 <1786033+johnno1962@users.noreply.github.com>
…y matchTypes path
Agent-Logs-Url: https://github.com/ObservedObject/swift/sessions/b378e1c3-cd36-44bd-b8bf-fc05e94a257c
Co-authored-by: johnno1962 <1786033+johnno1962@users.noreply.github.com>
…o primary matchTypes path"
This reverts commit 23b91b0.
…() block in repairFailures()
Agent-Logs-Url: https://github.com/ObservedObject/swift/sessions/d283ea56-dce6-40ba-8907-9149e4ad7499
Co-authored-by: johnno1962 <1786033+johnno1962@users.noreply.github.com>
… generic inits at build time
Agent-Logs-Url: https://github.com/ObservedObject/swift/sessions/99d17287-ef42-4036-bfd4-16b73a2694b8
Co-authored-by: johnno1962 <1786033+johnno1962@users.noreply.github.com>
Remove the byNominal/fallback candidate-list cache and
getImplicitConversionInits() entirely. Instead, memoize the final
result of getImplicitConversion() on the toType nominal, keyed by
the canonical fromType (before optional stripping).
- NominalTypeDecl now has a single ImplicitConversionResultCache
(DenseMap<CanType, pair<ConstructorDecl*, CanType>>) with
getCachedImplicitConversion() / setCachedImplicitConversion().
- getImplicitConversion() does a direct member scan on cache miss
and stores {ctor, resolvedToType} (or {nullptr, {}} for no match).
allCandidates collected during scan replaces the old
getImplicitConversionInits() call in the duplicate warning.
Net: -39 lines across 3 files.
Agent-Logs-Url: https://github.com/ObservedObject/swift/sessions/df4d4444-d566-4dd7-9a39-c48bba2c138a
Co-authored-by: johnno1962 <1786033+johnno1962@users.noreply.github.com>
…etection, locatorOK reorder, boundForward optional priority, Darwin import, remove UserInaccessible
Agent-Logs-Url: https://github.com/ObservedObject/swift/sessions/d2fa92ba-cc8e-4c69-b716-2f74f61fcfee
Co-authored-by: johnno1962 <1786033+johnno1962@users.noreply.github.com>
…es; restore UserInaccessible on @implicit
Agent-Logs-Url: https://github.com/ObservedObject/swift/sessions/9a4a4c15-192b-4db5-90b5-0ebe0cbb0386
Co-authored-by: johnno1962 <1786033+johnno1962@users.noreply.github.com>
…itConversion
Agent-Logs-Url: https://github.com/ObservedObject/swift/sessions/57c597dd-a81c-473c-a582-6edf57a1a9ea
Co-authored-by: johnno1962 <1786033+johnno1962@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ObservedObject/swift/sessions/a43a250e-350c-4586-9013-7135c15549f2
Co-authored-by: johnno1962 <1786033+johnno1962@users.noreply.github.com>
…r constrained extensions
Agent-Logs-Url: https://github.com/ObservedObject/swift/sessions/f72a2d80-733b-4928-a666-4e11e952ab9b
Co-authored-by: johnno1962 <1786033+johnno1962@users.noreply.github.com>
… causing coerceToType abort
Agent-Logs-Url: https://github.com/ObservedObject/swift/sessions/0b4510eb-6b0b-424d-a750-68e921513d95
Co-authored-by: johnno1962 <1786033+johnno1962@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ObservedObject/swift/sessions/f6d9fb7d-d744-448a-abd6-ef8127f40260
Co-authored-by: johnno1962 <1786033+johnno1962@users.noreply.github.com>
@johnno1962
johnno1962 merged commit 849a132 into implicit-conversion2May 15, 2026
Sign up for freeto 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.

2 participants

@johnno1962