-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Open
Open
Copy link
Labels
triage neededThis issue needs more specific labelsThis issue needs more specific labels
Description
Description
IIUC the design doc implies that specifying diagnostic flags for a parent group should apply them to children unless the children are explicitly passed with different values. this does not appear to work for the RegionIsolation (parent) and SendingRisksDataRace (child) groups.
Reproduction
// swiftc -language-mode 5 -strict-concurrency=complete -Werror RegionIsolation
class C {}
func send(_: @escaping @Sendable () -> Void) {}
func f(_ c: C) {
send { _ = c } // ⚠️ still a warning despite upgrading parent diagnostic group to an error
}Expected behavior
the parent group diagnostic settings should be inherited by child groups
Environment
Swift version 6.3-dev (LLVM 4f7a3dbb7e97ac4, Swift 477d32c)
Target: x86_64-unknown-linux-gnu
// 6.3 dev snapshot
Additional information
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
triage neededThis issue needs more specific labelsThis issue needs more specific labels