File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -2411,16 +2411,9 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
2411
2411
} else
2412
2412
inFlight.fixItInsert (ID->getStartLoc (), " internal " );
2413
2413
2414
- #ifndef NDEBUG
2415
- static bool enableTreatAsError = true ;
2416
- #else
2417
- static bool enableTreatAsError = getenv (" ENABLE_PUBLIC_IMPORT_OF_PRIVATE_AS_ERROR" );
2418
- #endif
2419
-
2420
2414
bool isImportOfUnderlying = importer->getName () == target->getName ();
2421
2415
auto *SF = ID->getDeclContext ()->getParentSourceFile ();
2422
- bool treatAsError = enableTreatAsError &&
2423
- !isImportOfUnderlying &&
2416
+ bool treatAsError = !isImportOfUnderlying &&
2424
2417
SF->Kind != SourceFileKind::Interface;
2425
2418
if (!treatAsError)
2426
2419
inFlight.limitBehavior (DiagnosticBehavior::Warning);
You can’t perform that action at this time.
0 commit comments