mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Basic: Stop enabling NoncopyableGenerics, BorrowingSwitch, and MoveOnlyPartialConsumption.
These features are baseline features and therefore are considered to be implicitly enabled. They don't need to be explicitly enabled or queried for in any part of the compiler.
This commit is contained in:
@@ -828,10 +828,6 @@ void DiagnosticEmitter::emitCannotPartiallyMutateError(
|
||||
return;
|
||||
}
|
||||
case PartialMutationError::Kind::HasDeinit: {
|
||||
assert(
|
||||
astContext.LangOpts.hasFeature(Feature::MoveOnlyPartialConsumption) ||
|
||||
astContext.LangOpts.hasFeature(
|
||||
Feature::MoveOnlyPartialReinitialization));
|
||||
auto diagnostic = [&]() {
|
||||
switch (kind) {
|
||||
case PartialMutation::Kind::Consume:
|
||||
@@ -851,10 +847,6 @@ void DiagnosticEmitter::emitCannotPartiallyMutateError(
|
||||
return;
|
||||
}
|
||||
case PartialMutationError::Kind::NonfrozenImportedType: {
|
||||
assert(
|
||||
astContext.LangOpts.hasFeature(Feature::MoveOnlyPartialConsumption) ||
|
||||
astContext.LangOpts.hasFeature(
|
||||
Feature::MoveOnlyPartialReinitialization));
|
||||
auto &nominal = error.getNonfrozenImportedNominal();
|
||||
auto diagnostic = [&]() {
|
||||
switch (kind) {
|
||||
@@ -870,10 +862,6 @@ void DiagnosticEmitter::emitCannotPartiallyMutateError(
|
||||
return;
|
||||
}
|
||||
case PartialMutationError::Kind::NonfrozenUsableFromInlineType: {
|
||||
assert(
|
||||
astContext.LangOpts.hasFeature(Feature::MoveOnlyPartialConsumption) ||
|
||||
astContext.LangOpts.hasFeature(
|
||||
Feature::MoveOnlyPartialReinitialization));
|
||||
auto &nominal = error.getNonfrozenUsableFromInlineNominal();
|
||||
auto diagnostic = [&]() {
|
||||
switch (kind) {
|
||||
|
||||
Reference in New Issue
Block a user