File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -2159,15 +2159,6 @@ void AttributeChecker::visitFinalAttr(FinalAttr *attr) {
2159
2159
}
2160
2160
2161
2161
void AttributeChecker::visitMoveOnlyAttr (MoveOnlyAttr *attr) {
2162
- #ifndef NDEBUG
2163
- // Try to catch uses of @_moveOnly when we don't have the Copyable protocol.
2164
- // This can only happen in rare circumstances with test cases where you're
2165
- // building with -parse-stdlib. You need to also specify that you're building
2166
- // the Swift module (`-module-name Swift`) and then explicitly define Copyable
2167
- if (!D->getASTContext ().getProtocol (KnownProtocolKind::Copyable))
2168
- llvm_unreachable (" must define Copyable protocol when using -parse-stdlib" );
2169
- #endif
2170
-
2171
2162
if (!D->getASTContext ().supportsMoveOnlyTypes ())
2172
2163
D->diagnose (diag::moveOnly_requires_lexical_lifetimes);
2173
2164
You can’t perform that action at this time.
0 commit comments