Unnecessary nonisolated(unsafe) produces no warning #71546
Labels
compiler
The Swift compiler in itself
concurrency
Feature: umbrella label for concurrency language features
diagnostics QoI
Bug: Diagnostics Quality of Implementation
missing warning
Bug: Missing warning
swift 6.0
type checker
Area → compiler: Semantic analysis
Motivation
During the process of migrating a system towards supporting concurrency, you might need to use
nonisolated(unsafe)
from SE-0412.But, later on, the class might be updated to conform to
Sendable
. Today, no diagnostics are produced.Proposed solution
I think a warning would be appropriate here now that
nonisolated(unsafe)
is no longer required.Alternatives considered
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: