Skip to content

Commit e8e3e46

Browse files
Merge pull request #85384 from aschwaighofer/enable_se0496_per_default
SE-0496 @inline(always) attribute was accepted
2 parents 6b5abb6 + 91991bf commit e8e3e46

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

include/swift/Basic/Features.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ EXPERIMENTAL_FEATURE(ImportMacroAliases, true)
536536
EXPERIMENTAL_FEATURE(BorrowAndMutateAccessors, false)
537537

538538
/// Allow use of @inline(always) attribute
539-
SUPPRESSIBLE_EXPERIMENTAL_FEATURE(InlineAlways, false)
539+
SUPPRESSIBLE_LANGUAGE_FEATURE(InlineAlways, 496, "@inline(always) attribute")
540540

541541
/// Allow use of 'Swift' (Swift runtime version) in @available attributes
542542
EXPERIMENTAL_FEATURE(SwiftRuntimeAvailability, true)

test/ModuleInterface/attr-inline-always.swift

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,19 @@
22
// RUN: -enable-experimental-feature InlineAlways \
33
// RUN: -emit-private-module-interface-path %t.private.swiftinterface
44

5-
// RUN: %target-swift-typecheck-module-from-interface(%t.swiftinterface) -module-name attrs \
6-
// RUN: -enable-experimental-feature InlineAlways
7-
// RUN: %target-swift-typecheck-module-from-interface(%t.private.swiftinterface) -module-name attrs \
8-
// RUN: -enable-experimental-feature InlineAlways
5+
// RUN: %target-swift-typecheck-module-from-interface(%t.swiftinterface) -module-name attrs
6+
7+
// RUN: %target-swift-typecheck-module-from-interface(%t.private.swiftinterface) -module-name attrs
8+
9+
// RUN: %FileCheck %s --check-prefixes CHECK --input-file %t.swiftinterface
10+
// RUN: %FileCheck %s --check-prefixes CHECK --input-file %t.private.swiftinterface
11+
12+
// RUN: %target-swift-emit-module-interface(%t.swiftinterface) %s -module-name attrs \
13+
// RUN: -emit-private-module-interface-path %t.private.swiftinterface
14+
15+
// RUN: %target-swift-typecheck-module-from-interface(%t.swiftinterface) -module-name attrs
16+
17+
// RUN: %target-swift-typecheck-module-from-interface(%t.private.swiftinterface) -module-name attrs
918

1019
// RUN: %FileCheck %s --check-prefixes CHECK --input-file %t.swiftinterface
1120
// RUN: %FileCheck %s --check-prefixes CHECK --input-file %t.private.swiftinterface

test/SILGen/inline_always.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %target-swift-emit-silgen -enable-experimental-feature InlineAlways -parse-as-library %s | %FileCheck %s
2+
// RUN: %target-swift-emit-silgen -parse-as-library %s | %FileCheck %s
23

34
// REQUIRES: swift_feature_InlineAlways
45

0 commit comments

Comments
 (0)