Commit Graph

8 Commits

Author SHA1 Message Date
Meghana Gupta
e8abd59da5 Update tests 2024-11-18 18:09:19 -08:00
Daniel Rodríguez Troitiño
ba68faaed5 [test] Mark tests that use experimental/upcoming features as such
Find all the usages of `--enable-experimental-feature` or
`--enable-upcoming-feature` in the tests and replace some of the
`REQUIRES: asserts` to use `REQUIRES: swift-feature-Foo` instead, which
should correctly apply to depending on the asserts/noasserts mode of the
toolchain for each feature.

Remove some comments that talked about enabling asserts since they don't
apply anymore (but I might had miss some).

All this was done with an automated script, so some formatting weirdness
might happen, but I hope I fixed most of those.

There might be some tests that were `REQUIRES: asserts` that might run
in `noasserts` toolchains now. This will normally be because their
feature went from experimental to upcoming/base and the tests were not
updated.
2024-11-02 11:46:46 -07:00
Nate Chandler
b1fbe4ea91 [BitwiseCopyable] Remove underscore. 2024-04-25 11:44:15 -07:00
Nate Chandler
ed5c7ef7ae [BitwiseCopyable] Promote to feature.
SE-0426 was accepted.
2024-04-24 15:52:20 -07:00
Nate Chandler
296d829f17 [Test] Check imported enum is BC. 2024-03-06 08:12:54 -08:00
Nate Chandler
cf77b9f98b [BitwiseCopyable] Allow conformance via swift_attr
If an imported type's conformance cannot be implicitly inferred, allow
it to be explicitly stated via
`__attribute__((__swift_attr__("_BitwiseCopyable")))`.
2024-03-05 16:52:17 -08:00
Nate Chandler
a0ac007343 [BitwiseCopyable] Don't infer on unref storage.
An imported declaration which has storage that can't be represented in
Swift must not be inferred to be BitwiseCopyable: that inference
involves looking at the (visible) fields.
2024-03-05 16:52:17 -08:00
Nate Chandler
b4dfd44bcf [Test] For BC inference of clang imported types. 2024-03-05 16:52:17 -08:00