diff --git a/include/swift/AST/DiagnosticsParse.def b/include/swift/AST/DiagnosticsParse.def index afc99fd256b2b..7a534dadfc1a0 100644 --- a/include/swift/AST/DiagnosticsParse.def +++ b/include/swift/AST/DiagnosticsParse.def @@ -1568,9 +1568,6 @@ ERROR(attr_specialize_unknown_parameter_name,none, ERROR(attr_specialize_expected_bool_value,none, "expected a boolean true or false value in '_specialize' attribute", ()) -WARNING(attr_specialize_export_true_no_op,none, - "'exported: true' has no effect in '_specialize' attribute", ()) - ERROR(attr_specialize_missing_parameter_label_or_where_clause,none, "expected a parameter label or a where clause in '_specialize' attribute", ()) diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index 35d585ab8bffb..740edb712d208 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -624,7 +624,6 @@ bool Parser::parseSpecializeAttributeArguments( ParamLabel); } if (ParamLabel == "exported") { - auto trueLoc = Tok.getLoc(); bool isTrue = consumeIf(tok::kw_true); bool isFalse = consumeIf(tok::kw_false); if (!isTrue && !isFalse) {