mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Introduce a new suppressible experimental feature to guard @_lifetime
This commit is contained in:
@@ -5374,7 +5374,8 @@ ParserStatus Parser::ParsedTypeAttributeList::slowParse(Parser &P) {
|
||||
}
|
||||
|
||||
if (P.isSILLifetimeDependenceToken()) {
|
||||
if (!P.Context.LangOpts.hasFeature(Feature::LifetimeDependence)) {
|
||||
if (!P.Context.LangOpts.hasFeature(Feature::LifetimeDependence) &&
|
||||
!P.Context.LangOpts.hasFeature(Feature::Lifetimes)) {
|
||||
P.diagnose(Tok, diag::requires_experimental_feature,
|
||||
"lifetime dependence specifier", false,
|
||||
Feature::LifetimeDependence.getName());
|
||||
|
||||
Reference in New Issue
Block a user