mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove -suppress-argument-labels-in-types; it's dead.
This commit is contained in:
@@ -92,9 +92,6 @@ namespace swift {
|
|||||||
/// was not compiled with -enable-testing.
|
/// was not compiled with -enable-testing.
|
||||||
bool EnableTestableAttrRequiresTestableModule = true;
|
bool EnableTestableAttrRequiresTestableModule = true;
|
||||||
|
|
||||||
/// Whether to implement SE-0111, the removal of argument labels in types.
|
|
||||||
bool SuppressArgumentLabelsInTypes = false;
|
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Flags for developers
|
/// Flags for developers
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -94,10 +94,6 @@ def disable_testable_attr_requires_testable_module :
|
|||||||
Flag<["-"], "disable-testable-attr-requires-testable-module">,
|
Flag<["-"], "disable-testable-attr-requires-testable-module">,
|
||||||
HelpText<"Disable checking of @testable">;
|
HelpText<"Disable checking of @testable">;
|
||||||
|
|
||||||
def suppress_argument_labels_in_types :
|
|
||||||
Flag<["-"], "suppress-argument-labels-in-types">,
|
|
||||||
HelpText<"SE-0111: Suppress argument labels in types">;
|
|
||||||
|
|
||||||
def enable_target_os_checking :
|
def enable_target_os_checking :
|
||||||
Flag<["-"], "enable-target-os-checking">,
|
Flag<["-"], "enable-target-os-checking">,
|
||||||
HelpText<"Enable checking the target OS of serialized modules">;
|
HelpText<"Enable checking the target OS of serialized modules">;
|
||||||
|
|||||||
@@ -789,9 +789,6 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
|||||||
= A->getOption().matches(OPT_enable_testable_attr_requires_testable_module);
|
= A->getOption().matches(OPT_enable_testable_attr_requires_testable_module);
|
||||||
}
|
}
|
||||||
|
|
||||||
Opts.SuppressArgumentLabelsInTypes |=
|
|
||||||
Args.hasArg(OPT_suppress_argument_labels_in_types);
|
|
||||||
|
|
||||||
if (const Arg *A = Args.getLastArg(OPT_debug_constraints_attempt)) {
|
if (const Arg *A = Args.getLastArg(OPT_debug_constraints_attempt)) {
|
||||||
unsigned attempt;
|
unsigned attempt;
|
||||||
if (StringRef(A->getValue()).getAsInteger(10, attempt)) {
|
if (StringRef(A->getValue()).getAsInteger(10, attempt)) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// RUN: %target-swift-frontend -emit-silgen -suppress-argument-labels-in-types %s | %FileCheck %s
|
// RUN: %target-swift-frontend -emit-silgen %s | %FileCheck %s
|
||||||
|
|
||||||
public struct X { }
|
public struct X { }
|
||||||
public struct Y { }
|
public struct Y { }
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// RUN: %target-swift-frontend -parse-stdlib -emit-silgen %s | %FileCheck %s
|
// RUN: %target-swift-frontend -parse-stdlib -emit-silgen %s | %FileCheck %s
|
||||||
// RUN: %target-swift-frontend -parse-stdlib -emit-silgen -suppress-argument-labels-in-types %s | %FileCheck %s
|
|
||||||
|
|
||||||
import Swift
|
import Swift
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// RUN: %target-swift-frontend -emit-silgen %s | %FileCheck %s
|
// RUN: %target-swift-frontend -emit-silgen %s | %FileCheck %s
|
||||||
// RUN: %target-swift-frontend -emit-silgen -suppress-argument-labels-in-types %s | %FileCheck %s
|
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
init(x: Int) {}
|
init(x: Int) {}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// RUN: %target-swift-frontend -disable-objc-attr-requires-foundation-module -emit-silgen %s | %FileCheck %s
|
// RUN: %target-swift-frontend -disable-objc-attr-requires-foundation-module -emit-silgen %s | %FileCheck %s
|
||||||
// RUN: %target-swift-frontend -disable-objc-attr-requires-foundation-module -emit-silgen -suppress-argument-labels-in-types %s | %FileCheck %s
|
|
||||||
|
|
||||||
public protocol P1 {
|
public protocol P1 {
|
||||||
func reqP1a()
|
func reqP1a()
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// RUN: %target-swift-frontend -module-name TestModule -parse -verify -suppress-argument-labels-in-types %s
|
// RUN: %target-swift-frontend -module-name TestModule -parse -verify %s
|
||||||
|
|
||||||
// Test non-overloaded global function references.
|
// Test non-overloaded global function references.
|
||||||
func f1(a: Int, b: Int) -> Int { }
|
func f1(a: Int, b: Int) -> Int { }
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// RUN: %target-swift-frontend -module-name TestModule -parse -verify -suppress-argument-labels-in-types %s
|
// RUN: %target-swift-frontend -module-name TestModule -parse -verify %s
|
||||||
|
|
||||||
// Function type with various forms of argument label.
|
// Function type with various forms of argument label.
|
||||||
typealias Function1 = (a: Int, // expected-error{{function types cannot have argument label 'a'; use '_' instead}}{{24-24=_ }}
|
typealias Function1 = (a: Int, // expected-error{{function types cannot have argument label 'a'; use '_' instead}}{{24-24=_ }}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// RUN: %target-swift-frontend -module-name TestModule -parse -verify -suppress-argument-labels-in-types %s
|
// RUN: %target-swift-frontend -module-name TestModule -parse -verify %s
|
||||||
|
|
||||||
typealias Tuple1 = (a: Int,
|
typealias Tuple1 = (a: Int,
|
||||||
b _: Int, // expected-error{{tuple element cannot have two labels}}{{22-24=}}
|
b _: Int, // expected-error{{tuple element cannot have two labels}}{{22-24=}}
|
||||||
|
|||||||
Reference in New Issue
Block a user