[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:
Kavon Farvardin
2023-10-29 15:06:08 -07:00
parent 455fcdc5e0
commit a9c64baaa3
27 changed files with 96 additions and 72 deletions

View File

@@ -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);