Remove exclusivity support for Swift 3 mode.

Remove the compiler support for exclusivity warnings.

Leave runtime support for exclusivity warnings in non-release builds
only for unit testing convenience.

Remove a test case that checked the warning log output.

Modify test cases that relied on successful compilation in the
presence of exclusivity violations.

Fixes: <rdar://problem/45146046> Remaining -swift-version 3 tests for exclusivity
This commit is contained in:
Andrew Trick
2018-10-11 21:17:56 -07:00
parent c6865c0dff
commit 2ecb48a89d
11 changed files with 132 additions and 219 deletions

View File

@@ -87,6 +87,7 @@ static void reportExclusivityConflict(ExclusivityFlags oldAction, void *oldPC,
constexpr unsigned framesToSkip = 1;
printCurrentBacktrace(framesToSkip);
// Should be inlined away in release builds.
bool keepGoing = isWarningOnly(newFlags);
RuntimeErrorDetails::Thread secondaryThread = {