i think it might be possible to re-promote via the warning control flags from SE-0443. in a direct invocation to swiftc using both -enable-upcoming-feature ExistentialAny and -Werror ExistentialAny appears to cause the warnings to be promoted to errors in the 6.1 compiler. not sure exactly if/how to configure that for use in SPM though.
unfortunately, this does not seem to be compatible with SwiftPM
% swift build -Xswiftc -Werror -Xswiftc ExistentialAny
[1/1] Planning build
Building for debugging...
error: conflicting options '-Werror' and '-suppress-warnings'
i inherited a code base with (what i estimate to be) a low thousands number of occurrences of this problem. it takes several minutes to build the project from scratch, and unlike errors, incremental builds do not surface warnings. is there anything that can help me speed up this task?
are the targets under your control the ones specifying the -suppress-warnings flag? if so, removing that and setting the error promotion flags via the manifest rather than command line might be an option.
yes, i believe you're correct (see here), but it seems like it does that only for 'remote' packages. i'm not entirely sure what the semantics there are, but perhaps the package manifests for the 'local' packages could leverage the error promotion flags.