Meghana Gupta
422ed2b0bb
[NFC] LifetimeDependentReturnTypeRepr -> LifetimeDependentTypeRepr
2024-07-10 14:48:34 -07:00
Meghana Gupta
076d70acbb
Update getLifetimeDependenceInfo to getLifetimeDependencies in CSSimplify
2024-07-10 14:48:34 -07:00
Meghana Gupta
fecd2b452d
Don't mangle lifetime dependencies in older runtimes
2024-07-10 14:48:34 -07:00
Meghana Gupta
2b28da6dd7
Update ASTPrinting of lifetime dependence
2024-07-10 14:48:34 -07:00
Meghana Gupta
815d7a67f5
Replace hasLifetimeDependenceInfo -> hasLifetimeDependencies
2024-07-10 14:48:34 -07:00
Meghana Gupta
7499cf3fbb
Update lifetime dependence tests
2024-07-10 14:48:30 -07:00
Meghana Gupta
7d2ff43fe3
Update mangling to support lifetime dependence in parameter position
2024-07-10 14:20:03 -07:00
Meghana Gupta
154989463b
Add support for lifetime dependence in parameter position
2024-07-10 14:20:03 -07:00
Meghana Gupta
8137aed238
Rename LifetimeDependentReturnTypeRepr -> LifetimeDependentTypeRepr
2024-07-10 14:20:03 -07:00
Meghana Gupta
4993f4bf22
Merge pull request #74956 from meg-gupta/lifetimedepfunctiontype
...
Add some diagnostics related to lifetime dependence and function types
2024-07-10 14:19:05 -07:00
Anthony Latsis
28795efd4b
Merge pull request #75129 from AnthonyLatsis/felix-catus
...
[NFC] .github: Better spell out how to include bad output in bug report template
2024-07-11 00:18:00 +03:00
Rintaro Ishizaki
98c1629b67
Merge pull request #75130 from rintaro/rangecontainsloc-optimize
...
[Macros] Optimize 'rangeContainsTokenLocWithGeneratedSource'
2024-07-10 14:16:29 -07:00
Holly Borla
5bddd984c4
Merge pull request #75122 from hborla/isolation-inference-inherited-conformance
...
[Concurrency] Don't infer actor isolation from inherited conformances.
swift-DEVELOPMENT-SNAPSHOT-2024-07-10-a
2024-07-10 12:01:44 -07:00
Greg Titus
9b9747d79b
Merge pull request #75126 from gregomni/diagnostics-cleanup
...
[Sema] Relative line numbers in test expectations
2024-07-10 11:08:19 -07:00
Doug Gregor
2a8b3fcf95
Merge pull request #75093 from DougGregor/unsafe-inherit-executor-vs-pound-isolation
...
Ensure that a `@_unsafeInheritExecutor` function does not depend on `#isolation`
2024-07-10 11:05:37 -07:00
Rintaro Ishizaki
126ad5ce79
[Macros] Optimize 'rangeContainsTokenLocWithGeneratedSource'
...
* Early return for the direct 'true' case.
* Instead of comparing the buffer IDs, check f the entire buffer
contains the target range. This keeps 'LocCache.lastBufferID' and
improves the hit rate.
2024-07-10 10:50:28 -07:00
Anthony Latsis
80dc6af829
[NFC] .github: Better spell out how to include bad output in bug report template
2024-07-10 20:21:28 +03:00
Tim Kientzle
55d4a56c69
Merge pull request #74821 from tbkka/tbkka-bincompat
...
Upstream some binary-compatibility logic
2024-07-10 09:47:14 -07:00
Saleem Abdulrasool
31fc0a65e5
Merge pull request #75104 from compnerd/pinning
...
utils: pin the latest build for ARM64 to bootstrap on Windows
2024-07-10 09:02:05 -07:00
Mishal Shah
4ebcbc289d
Merge pull request #74117 from AnthonyLatsis/prunus-persica
2024-07-10 08:54:55 -07:00
Greg Titus
a4f4e0fa68
Relative line numbers so there aren't diffs here everytime lines above change.
2024-07-10 08:11:41 -07:00
Pavel Yaskevich
19f59ce0c1
Merge pull request #75087 from xedin/rdar-130776220-limited
...
[Concurrency] Fix disallowed override isolation to carry `@preconcurr…
2024-07-10 01:02:40 -07:00
Evan Wilde
a89c5a05f8
Merge pull request #74033 from etcwilde/ewilde/all-the-configs-are-a-mess
...
Use the toolchain clang consistently when building with ASAN enabled.
2024-07-09 23:21:36 -07:00
Allan Shortlidge
cf2c6ff1bb
Merge pull request #75094 from tshortli/baseline-more-features
2024-07-09 23:11:45 -07:00
Doug Gregor
817e1c18b0
Extend type checker hack for @_unsafeInheritExecutor functions to methods
...
With the re-introduction of `@_unsafeInheritExecutor` for `TaskLocal.withValue`,
we need to extend the type checker trick with `_unsafeInheritExecutor_`-prefixed
functions to work with methods. Do so to make `TaskLocal.withValue` actually
work this way.
2024-07-09 21:39:42 -07:00
Mishal Shah
0d0994ba9c
Merge pull request #75086 from jmschonfeld/swift-collections-1.1.2
2024-07-09 19:59:28 -07:00
Holly Borla
86f3fe1680
[Concurrency] Don't infer actor isolation from inherited conformances.
...
If a conformance is inherited from a superclass, the isolation
of the subclass should be inferred directly from the superclass.
If the superclass has opted out of global actor inference from a
protocol, such as by conforming to the protocol in an extension,
then the subclass should not infer isolation from the protocol.
2024-07-09 19:43:40 -07:00
Rintaro Ishizaki
fba8b10cda
Merge pull request #75115 from rintaro/basic-ondiscbuffer-cache
...
[Basic] Don't rewrite source buffer copy multiple times
2024-07-09 18:54:56 -07:00
Michael Gottesman
8b618c6919
Merge pull request #75114 from gottesmm/pr-f98009de45079043f0a356d020d8110306fb159f
...
[region-isolation] Be more aggressive about not looking through Sendable values when getting underlying objects.
2024-07-09 18:02:12 -07:00
Hamish Knight
15bb0616ff
Merge pull request #74974 from hamishknight/solvar
...
[CursorInfo] Resolve solver-based in VarDecls
2024-07-10 01:54:24 +01:00
Sima Nerush
2744413e69
Merge pull request #75084 from simanerush/sima/131339439
...
[Concurrency] Remove the global actor check when allowing 'nonisolated' on mutable Sendable storage.
2024-07-09 16:57:12 -07:00
Allan Shortlidge
363b875117
Tests: Update sending_conditional_suppression.swift.
2024-07-09 15:53:43 -07:00
Doug Gregor
8964436f36
Add _unsafeInheritExecutor_ version of TaskLocal.withValue
2024-07-09 15:38:38 -07:00
Steven Wu
9318937498
Merge pull request #75082 from cachemeifyoucan/eng/PR-131214106
...
[Macro] Fix bugs in macro dependency scanning
2024-07-09 15:33:01 -07:00
Rintaro Ishizaki
90c2975d66
[Basic] Don't rewrite source buffer copy multiple times
...
The on-disc buffer file name was not recorded correctly.
rdar://130478685
2024-07-09 15:09:30 -07:00
Michael Gottesman
c986af7695
[region-isolation] Be more aggressive about not looking through Sendable values when getting underlying objects.
...
Otherwise, in cases like the following, we look through the load to x.boolean
and think that the closure is actually capturing x instead of y:
```swift
func testBooleanCapture(_ x: inout NonSendableKlass) {
let y = x.boolean
Task.detached { @MainActor [z = y] in
print(z)
}
}
```
rdar://131369987
2024-07-09 14:38:47 -07:00
Allan Shortlidge
ab68c29701
AST: Remove interface guards for a bunch of experimental features.
...
Since these features are experimental features, they can't be catagorized as
"baseline" features. However, there is no need to guard code in swiftinterfaces
that potentially uses syntax related to these features since all supported
compilers can parse the syntax.
2024-07-09 14:29:31 -07:00
Allan Shortlidge
d944488a86
AST: Promote NewCxxMethodSafetyHeuristics feature to baseline.
2024-07-09 14:29:31 -07:00
Allan Shortlidge
aab4f1051c
AST: Promote BodyMacros feature to baseline.
2024-07-09 14:29:30 -07:00
Allan Shortlidge
0ba007661a
AST: Promote BuiltinAddressOfRawLayout to baseline.
2024-07-09 14:29:30 -07:00
Allan Shortlidge
45f3e94b46
AST: Promote AssociatedTypeImplements feature to baseline.
2024-07-09 14:28:30 -07:00
Allan Shortlidge
b71e73d04c
AST: Promote RetroactiveAttribute feature to baseline.
2024-07-09 14:28:29 -07:00
Allan Shortlidge
e7ae787516
AST: Promote ConformanceSuppression feature to baseline.
2024-07-09 14:28:29 -07:00
Allan Shortlidge
b46f23b502
AST: Promote BitwiseCopyable feature to baseline.
2024-07-09 14:28:29 -07:00
Allan Shortlidge
b85da32707
AST: Promote OptionalIsolatedParameters feature to baseline.
2024-07-09 14:28:29 -07:00
Allan Shortlidge
b39637159c
AST: Promote RethrowsProtocol feature to baseline.
2024-07-09 14:28:29 -07:00
Allan Shortlidge
8093783e21
AST: Promote ExtensionMacroAttr feature to baseline.
2024-07-09 14:28:29 -07:00
Allan Shortlidge
99dbbe4a12
AST: Promote BuiltinStoreRaw feature to baseline.
2024-07-09 14:28:29 -07:00
Allan Shortlidge
8dad141136
AST: Promote Extern feature to baseline.
2024-07-09 14:28:29 -07:00
Allan Shortlidge
365d26e323
AST: Promote ExpressionMacroDefaultArguments feature to baseline.
2024-07-09 14:28:29 -07:00