We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-enable-experimental-move-only
1 parent 7680332 commit e738bdfCopy full SHA for e738bdf
lib/ClangImporter/ImportDecl.cpp
@@ -2183,15 +2183,6 @@ namespace {
2183
Impl.ImportedDecls[{decl->getCanonicalDecl(), getVersion()}] = result;
2184
2185
if (recordHasMoveOnlySemantics(decl)) {
2186
- if (!Impl.SwiftContext.LangOpts.hasFeature(Feature::MoveOnly)) {
2187
- Impl.addImportDiagnostic(
2188
- decl, Diagnostic(
2189
- diag::move_only_requires_move_only,
2190
- Impl.SwiftContext.AllocateCopy(decl->getNameAsString())),
2191
- decl->getLocation());
2192
- return nullptr;
2193
- }
2194
-
2195
result->getAttrs().add(new (Impl.SwiftContext)
2196
MoveOnlyAttr(/*Implicit=*/true));
2197
}
0 commit comments