Skip to content

Commit ed84f18

Browse files
committed
[AST] NFC: Remove a FIXME related to ParamDecl::IsAutoClosure field
1 parent bce1ba5 commit ed84f18

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

include/swift/AST/Decl.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4851,8 +4851,6 @@ class ParamDecl : public VarDecl {
48514851
llvm::PointerIntPair<StoredDefaultArgument *, 1> DefaultValueAndIsVariadic;
48524852

48534853
/// `@autoclosure` flag associated with this parameter.
4854-
/// FIXME: This has to become declaration attribute after
4855-
/// `@autoclosure` is removed from function type.
48564854
bool IsAutoClosure = false;
48574855

48584856
public:

lib/Parse/ParsePattern.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,7 @@ mapParsedParameters(Parser &parser,
486486

487487
// If there is `@autoclosure` attribute associated with the type
488488
// let's mark that in the declaration as well, because it
489-
// belongs to both type flags and declaration at the moment, but
490-
// should be removed from the type in the future.
489+
// belongs to both type flags and declaration.
491490
if (auto *ATR = dyn_cast<AttributedTypeRepr>(type)) {
492491
auto &attrs = ATR->getAttrs();
493492
param->setAutoClosure(attrs.has(TypeAttrKind::TAK_autoclosure));

lib/Sema/CSSimplify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ ConstraintSystem::TypeMatchResult constraints::matchCallArguments(
837837
: ConstraintKind::ArgumentConversion);
838838

839839
// Check whether argument of the call at given position refers to
840-
// parameter marked as `@autoclosure. This function is used to
840+
// parameter marked as `@autoclosure`. This function is used to
841841
// maintain source compatibility with Swift versions < 5,
842842
// previously examples like following used to type-check:
843843
//

0 commit comments

Comments
 (0)