Skip to content

Commit 0d2fdad

Browse files
committed
NCGenerics: ensure it's enabled
Regardless of whether someone made it non-experimental, or deleted all the checks in the compiler, really, truly, make sure the bit is set to indicate we have the darn feature.
1 parent e805679 commit 0d2fdad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Basic/LangOptions.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ LangOptions::LangOptions() {
4747
#endif
4848

4949
// Note: Introduce default-on language options here.
50+
Features.insert(Feature::NoncopyableGenerics);
51+
Features.insert(Feature::BorrowingSwitch);
52+
Features.insert(Feature::MoveOnlyPartialConsumption);
5053

5154
// Enable any playground options that are enabled by default.
5255
#define PLAYGROUND_OPTION(OptionName, Description, DefaultOn, HighPerfOn) \

0 commit comments

Comments
 (0)