Hamish Knight
cc23c25979
Merge pull request #80535 from hamishknight/cap-req
...
[Sema] Requestify PatternBindingDecl capture computation
2025-04-07 17:28:18 +01:00
Egor Zhdan
91e730a820
Merge pull request #79425 from CrazyFanFan/feature/cxx_multiple_swift_conforms_to_protocol
...
[c++ interop] Swift should allow multiple SWIFT_CONFORMS_TO_PROTOCOL attributes on a C++ class
2025-04-07 17:09:53 +01:00
Hamish Knight
8834f6c4c7
Merge pull request #80496 from hamishknight/message-in-a-crash-log
...
[Mangler] Include verification errors in the crash log
2025-04-07 17:03:18 +01:00
nate-chandler
1d3e669d63
Merge pull request #80555 from nate-chandler/bug/20250404/1
...
[SIL] Fix bridged begin_apply results.
2025-04-07 07:25:16 -07:00
Crazy凡
c05d1fc135
[c++ interop] Swift should allow multiple SWIFT_CONFORMS_TO_PROTOCOL attributes on a C++ class.
2025-04-06 22:24:14 +08:00
eeckstein
98739a412a
Merge pull request #80543 from eeckstein/isolated-conformance-opt
...
CastOptimizer: handle isolated conformances
2025-04-06 10:59:51 +02:00
Anthony Latsis
5c190b9613
AST: Cut down on DescriptiveDeclKind usage in DiagnosticsSIL.def
2025-04-05 12:31:20 +01:00
Anthony Latsis
3c3dd54f39
AST: Cut down on DescriptiveDeclKind usage in DiagnosticsParse.def
2025-04-05 12:31:20 +01:00
Anthony Latsis
2d899d0e73
AST: Cut down on DescriptiveDeclKind usage in DiagnosticsCommon.def
2025-04-05 12:31:20 +01:00
Anthony Latsis
cdb2aaccfd
AST: Cut down on DescriptiveDeclKind usage in DiagnosticsClangImporter.def
2025-04-05 12:31:20 +01:00
Anthony Latsis
a0930dec31
AST: Cut down on DescriptiveDeclKind usage in DiagnosticsSema.def
2025-04-05 12:31:19 +01:00
Anthony Latsis
08d46d2542
Merge pull request #80473 from AnthonyLatsis/diag_type_attr
...
DiagnosticEngine: Support `TypeAttribute` diagnostic arguments
2025-04-05 12:25:45 +01:00
Hamish Knight
ccdff3259c
Merge pull request #80546 from hamishknight/mangle-less
...
[Mangler] Avoid mangling local discriminator for attached macros
2025-04-05 10:14:49 +01:00
Michael Gottesman
3ff9463957
Make Feature a struct enum so we can put methods on it.
...
Just noticed this as I was looking at making other changes.
2025-04-05 10:08:29 +01:00
Erik Eckstein
e18bedaa87
CastOptimizer: pass the SIL function to the cast-classify APIs, instead of the module decl
...
NFC
2025-04-05 09:00:30 +02:00
Erik Eckstein
9df1039379
SIL: add matchesActorIsolation
...
Returns true if the conformance is not isolated or if its isolation matches the isolation `inFunction`.
2025-04-05 09:00:30 +02:00
Nate Chandler
df2fb88e9b
[SIL] Fix bridged begin_apply results.
...
The `yield_once_2` adds an extra result at the end, the deallocation.
Fix the indexing for the token and yielded results.
2025-04-04 18:12:26 -07:00
nate-chandler
0063af561f
Merge pull request #80520 from nate-chandler/general-coro/20250403/1
...
[CoroutineAccessors] Use async bit in descriptors.
2025-04-04 15:47:19 -07:00
Hamish Knight
da1d37de26
[Mangler] Avoid mangling local discriminator for attached macros
...
If we're using the macro-specific local discriminator, we need to
make sure we avoid mangling the regular local discriminator in
`appendDeclName`, since that could prematurely kick local discriminator
assignment before type-checking has finished.
rdar://143834482
2025-04-04 19:41:04 +01:00
Meghana Gupta
ef1e94577f
Revert "Merge pull request #80540 from swiftlang/revert-80452-lifetimeinout"
...
This reverts commit 6eaa07a880 , reversing
changes made to e75ee3f4cf .
2025-04-04 09:50:13 -07:00
Artem Chikin
6eaa07a880
Merge pull request #80540 from swiftlang/revert-80452-lifetimeinout
...
Revert "Add support for inout lifetime dependence"
2025-04-04 09:31:46 -07:00
Joe Groff
b4fb5296f9
Merge pull request #80519 from jckarter/canonicalize-integer-generic-parameters
...
Canonicalize different spellings of the same integer generic parameter.
2025-04-04 09:25:18 -07:00
Pavel Yaskevich
8bf8c24bf9
Merge pull request #80503 from xedin/extensible-attr
...
[AST/Sema] Add `@extensible` attribute on `enum` declarations
2025-04-04 09:17:56 -07:00
Artem Chikin
39e1791b67
Revert "Add support for inout lifetime dependence"
2025-04-04 09:00:09 -07:00
Hamish Knight
4676eaa110
[Sema] Requestify PatternBindingDecl capture computation
...
Introduce `PatternBindingCaptureInfoRequest`, and kick it after
contextualizing a property initializer. This ensures it gets run
for stored properties added by macro expansions.
rdar://143429551
2025-04-04 16:01:39 +01:00
Slava Pestov
9148ae32bd
Merge pull request #80482 from slavapestov/abstract-conformance-cleanup
...
AST: Simplify ProtocolConformanceRef operations a little bit
2025-04-04 10:37:49 -04:00
Meghana Gupta
50ea777936
Merge pull request #80452 from meg-gupta/lifetimeinout
...
Add support for inout lifetime dependence
2025-04-04 02:04:53 -07:00
eeckstein
253f730f92
Merge pull request #80506 from eeckstein/fix-simplify-alloc-stack
...
Fix two bugs in alloc_stack simplification
2025-04-04 07:21:18 +02:00
Doug Gregor
a452a41440
Merge pull request #80508 from 3405691582/bootstrap
...
Fix the bootstrap build.
2025-04-03 21:23:59 -07:00
Nate Chandler
66ca0d8d4b
[CoroutineAccessors] Use async bit in descriptors.
...
To facilitate back deployment, make use of the fact that the async bit
has up to now never been set for read and modify accessors and claim
that set bit to indicate that it is a callee-allocated coroutine. This
has the virtue of being completely back deployable because like async
function pointers coro function pointers must be auth'd and signed as
data.
2025-04-03 19:49:44 -07:00
Joe Groff
5a09c0b4e0
Canonicalize different spellings of the same integer generic parameter.
...
`Foo<256>`, `Foo<2_56>`, and `Foo<0x100>` are all canonically the same type.
Fixes rdar://144736386.
2025-04-03 18:56:00 -07:00
Meghana Gupta
493f0b782e
Introduce InoutLifetimeDependence feature
2025-04-03 17:32:09 -07:00
Meghana Gupta
0d3d89ae22
[NFC] Update diagnostic msg
2025-04-03 17:22:13 -07:00
Meghana Gupta
d87a2b2ada
Rename ParsedLifetimeDependenceKind::Scope -> ParsedLifetimeDependenceKind::Borrow
2025-04-03 17:22:13 -07:00
Meghana Gupta
cfacd25df4
Add support for @lifetime(&arg)
2025-04-03 17:22:06 -07:00
Pavel Yaskevich
bf19481ab6
[Frontend/Serialization] Remove ExtensibleEnums experimental flag
...
For now the semantics provided by `@extensible` keyword on per-enum
basis. We might return this as an upcoming feature in the future with
a way to opt-out.
2025-04-03 16:30:23 -07:00
Pavel Yaskevich
a0ae93d3a8
[AST/Sema] Add @extensible attribute on enum declarations
...
This attribute controls whether cross-module access to the declaration
needs `@unknown default:` because it's allowed to gain new cases even
if the module is non-resilient.
2025-04-03 16:30:19 -07:00
Augusto Noronha
cac0abbfde
Merge pull request #80380 from augusto2112/fix-opaque
...
[DebugInfo] Use underlying type of global variables with opaque type
2025-04-03 15:39:11 -07:00
Steven Wu
02ee2f4d62
[BridgingHeaderChaining] Bind bridging header module when load module
...
When loading a module with embedded bridging header, bind the bridging
header module in the context when bridging header auto chaining is used.
This is because all the bridging header contents are chained into a PCH
file so binary module with bridging header should reference the PCH file
for all declarations.
rdar://148538787
2025-04-03 15:04:03 -07:00
Slava Pestov
e475b08011
AST: Remove AssociatedType
2025-04-03 17:35:35 -04:00
Slava Pestov
cea72e35a9
AST: Remove ProtocolConformanceRef::getAssociatedType()
2025-04-03 17:35:34 -04:00
Slava Pestov
a06a4213ef
AST: Remove origType parameter from substOpaqueTypesWithUnderlyingTypes()
2025-04-03 17:35:34 -04:00
Slava Pestov
ea05708716
AST: Eliminate GenericEnvironment::mapConformanceRefIntoContext()
2025-04-03 17:35:34 -04:00
Slava Pestov
ec0dfc8716
AST: Add new form of SubstitutionMap::getProtocolSubstitutions()
2025-04-03 17:35:33 -04:00
Slava Pestov
0616333129
AST: Remove origType parameter from ProtocolConformanceRef::getAssociatedType()
2025-04-03 17:35:33 -04:00
Slava Pestov
a209ff8869
AST: Remove origType parameter from ProtocolConformanceRef::subst()
2025-04-03 17:35:33 -04:00
Slava Pestov
7399eeb602
AST: Remove type parameter from ProtocolConformanceRef::getWitnessByName()
2025-04-03 17:35:33 -04:00
Slava Pestov
00766f7deb
AST: Remove type parameter from ProtocolConformanceRef::getTypeWitnessByName()
2025-04-03 17:35:32 -04:00
Slava Pestov
91503710bc
AST: Remove origType parameter from ProtocolConformanceRef::getTypeWitness()
2025-04-03 17:35:32 -04:00
Slava Pestov
8b1514cfd7
AST: Remove origType parameter from ProtocolConformanceRef::getAssociatedConformance()
2025-04-03 17:35:32 -04:00