Remove -suppress-argument-labels-in-types; it's dead.

This commit is contained in:
Doug Gregor
2016-08-19 14:27:29 -07:00
parent fe7e780559
commit f9d109442a
10 changed files with 4 additions and 17 deletions

View File

@@ -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
/// ///

View File

@@ -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">;

View File

@@ -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)) {

View File

@@ -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 { }

View File

@@ -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

View File

@@ -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) {}

View File

@@ -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()

View File

@@ -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 { }

View File

@@ -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=_ }}

View File

@@ -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=}}