mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Sema] refactor TypeDecl::isNoncopyable
In preparation for reporting whether the inverse marking on a TypeDecl was inferred instead of explicit.
This commit is contained in:
@@ -2019,7 +2019,7 @@ LookupConformanceInModuleRequest::evaluate(
|
||||
// We only need to do this until we are properly dealing with or
|
||||
// omitting Copyable conformances in modules/interfaces.
|
||||
|
||||
if (nominal->isNoncopyable())
|
||||
if (nominal->canBeNoncopyable())
|
||||
return ProtocolConformanceRef::forMissingOrInvalid(type, protocol);
|
||||
else
|
||||
return ProtocolConformanceRef(protocol);
|
||||
|
||||
Reference in New Issue
Block a user