Skip to content

Commit 855eddb

Browse files
committed
Downgrade priors version mismatch warning
As a user when you're changing between versions of these files there's nothing you could do to avoid invalidation so this warning feel superfluous
1 parent b9cd96b commit 855eddb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Sources/SwiftDriver/IncrementalCompilation/IncrementalDependencyAndInputSetup.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,7 @@ extension IncrementalCompilationState.IncrementalDependencyAndInputSetup {
344344
graphIfPresent = try ModuleDependencyGraph.read(from: dependencyGraphPath, info: self)
345345
}
346346
catch let ModuleDependencyGraph.ReadError.mismatchedSerializedGraphVersion(expected, read) {
347-
diagnosticEngine.emit(.warning("Will not do cross-module incremental builds, wrong version of priors; expected \(expected) but read \(read) at '\(dependencyGraphPath)'"),
348-
location: nil)
347+
reporter?.report("Will not do cross-module incremental builds, wrong version of priors; expected \(expected) but read \(read) at '\(dependencyGraphPath)'")
349348
graphIfPresent = nil
350349
}
351350
catch {

Tests/SwiftDriverTests/IncrementalCompilationTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1603,7 +1603,7 @@ extension DiagVerifiable {
16031603
"Incremental compilation: Read dependency graph"
16041604
}
16051605
@DiagsBuilder var couldNotReadPriors: [Diagnostic.Message] {
1606-
.warning("Will not do cross-module incremental builds, wrong version of priors; expected")
1606+
.remark("Will not do cross-module incremental builds, wrong version of priors; expected")
16071607
}
16081608
// MARK: - dependencies
16091609
@DiagsBuilder func reading(deps inputs: [String]) -> [Diagnostic.Message] {

0 commit comments

Comments
 (0)