Commit Graph

68 Commits

Author SHA1 Message Date
Artem Chikin
ea8209a484 Revert "test: update stability-stdlib-abi-with{out}-asserts.test" 2021-10-25 10:54:46 -07:00
Artem Chikin
a29f521725 test: update stability-stdlib-abi-with{out}-asserts.test
These new entries are false positives due to stale baselines that didn't record @_silgen_name.
2021-10-25 10:30:54 -07:00
Alejandro Alonso
7e0eaf7b99 Remove metadata section functions from the stdlib (#39236)
add aliases in test suite
2021-09-14 11:55:39 -07:00
Karoy Lorentey
2c50ae5118 [test] stability-stdlib-abi*: Mask out unstable parts of private names
The type `Hasher._Core` is `@frozen` but its stored properties are `private`, which currently makes them show up in api-digester ABI reports, leading to failures like this one:

```
+Var Hasher._Core._buffer has mangled name changing from 'Swift.Hasher._Core.(_buffer in _A19879A32F7D08A6DD54BABBA00BBA0C) : Swift.Hasher._TailBuffer' to 'Swift.Hasher._Core.(_buffer in _16630011A164FCBB1F12E5E0A3A7C863) : Swift.Hasher._TailBuffer'
```

These names aren't ABI impacting, so this checker probably should ignore their name changes. (The property names do appear in the .swiftinterface files, but IIUC the only their type and ordering matters.)

These ever-changing unstable ids make it impossible to add an entry to the expectation list that would allow these tests to pass. Work around this issue by postprocessing the reports to replace the unstable parts with the constant string `#UNSTABLE ID#`.

rdar://82552099
2021-09-01 17:39:52 -07:00
Stephen Canon
a3ba517837 Mark legacy overloads of &+ and &- unavailable. (#38723)
These were defined for both FixedWidthInteger and FixedWidthInteger & SignedInteger for source compatibility with Swift 3; the latter set probably should have been removed when we stabilized the ABI, but were not. We can't easily remove them entirely (because we need them for ABI stability now), but we can mark them unavailable so that the typechecker doesn't have to consider them..
2021-08-05 21:18:48 -04:00
Kyle Macomber
4c169c12ba Conform Never to Identifiable
rdar://75988520
2021-06-28 20:11:55 -07:00
Karoy Lorentey
40529fbe25 [stdlib][test] Update stdlib abi test docs 2021-04-28 15:39:01 -07:00
Karoy Lorentey
b11c6e42ea [stdlib][test] Update stdlib abi test docs 2021-04-28 14:10:06 -07:00
Doug Gregor
fcd5d43457 Revert "stdlib: Add reasync variants of '&&', '||' and '??'" 2021-04-05 16:45:44 -07:00
Slava Pestov
c473869141 stdlib: Add reasync variants of '&&', '||' and '??'
Fixes rdar://problem/72770687.
2021-03-31 19:21:08 -04:00
tbkka
26ab27648e Casting from AnyHashable to AnyHashable should never create another wrapper (#36470)
* Casting from AnyHashable to AnyHashable should never create another wrapper

This adds a conformance for _HasCustomAnyHashableRepresentation to
AnyHashable that simply returns self.  This ensures that anytime
you try to create a new AnyHashable wrapper for an existing
AnyHashable, you just get back the original.

Resolves rdar://75180619

* Move the `Struct AnyHashable` change to `without-asserts` list

As suggested by @lorentey
2021-03-22 09:03:29 -07:00
Doug Gregor
9579390024 [SE-0304] Rename ConcurrentValue to Sendable 2021-03-18 22:48:20 -07:00
Doug Gregor
364b245b4a Update test for intentionally-benign ABI change to standard library 2021-02-22 07:25:23 -08:00
Karoy Lorentey
70584f92b7 [test] Reinstate stdlib ABI checks
The noasserts flavor was previously XFAILed.

rdar://72856256
2021-02-02 21:32:07 -08:00
Mishal Shah
79324dfb4c Disable stability-stdlib-abi-without-asserts.test (72856256) 2021-01-07 09:41:05 -08:00
Nate Cook
e56a76baa7 Update API Digester test w/ temporary RangeSet removal (#35160) 2020-12-19 12:00:50 +00:00
Vedant Kumar
2308bb18b1 Add _getMetadataSection{,Count,Name} to API digester allow list (#33138)
These APIs are needed to build SwiftReflectionTest.swift when testing
Release builds.

This rolls back 014918c0, which hid these APIs in non-asserts builds
causing a failure:

  https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android-arm64/5708/consoleText

rdar://66103895
2020-07-28 15:19:18 -07:00
Karoy Lorentey
a8c785b58a [test] Update & reenable stdlib ABI stability tests 2020-07-17 21:59:45 -07:00