Skip to content

Commit 4db0a4a

Browse files
committed
[AST] Remove unused SubstOptions constructor.
On some implementations of the C++ Standard Library, trying to move-construct an std::function will require that the return type be complete. SubstOptions' GetTentativeTypeWitness function returns Type, which is defined later in this file, which can trigger the failure.
1 parent 3dbfa97 commit 4db0a4a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

include/swift/AST/Type.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,6 @@ struct SubstOptions : public OptionSet<SubstFlags> {
179179
SubstOptions(SubstFlags flags) : OptionSet(flags) { }
180180

181181
SubstOptions(OptionSet<SubstFlags> options) : OptionSet(options) { }
182-
183-
SubstOptions(OptionSet<SubstFlags> options,
184-
GetTentativeTypeWitness getTentativeTypeWitness)
185-
: OptionSet(options),
186-
getTentativeTypeWitness(std::move(getTentativeTypeWitness)) { }
187182
};
188183

189184
inline SubstOptions operator|(SubstFlags lhs, SubstFlags rhs) {

0 commit comments

Comments
 (0)