Skip to content

Commit e738bdf

Browse files
zoecarverhyp
authored andcommitted
[cxx-interop] Import move only types even when -enable-experimental-move-only isn't added.
1 parent 7680332 commit e738bdf

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2183,15 +2183,6 @@ namespace {
21832183
Impl.ImportedDecls[{decl->getCanonicalDecl(), getVersion()}] = result;
21842184

21852185
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-
21952186
result->getAttrs().add(new (Impl.SwiftContext)
21962187
MoveOnlyAttr(/*Implicit=*/true));
21972188
}

0 commit comments

Comments
 (0)