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:
Allan Shortlidge
2025-07-10 10:40:03 -07:00
parent dbedb21ae2
commit 0a86d007e8
2 changed files with 0 additions and 17 deletions

View File

@@ -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) {