Skip to content

Conversation

kavon
Copy link
Member

@kavon kavon commented Sep 24, 2025

Includes fixes for:

  • copy class.member types of expressions
  • borrowing parameters

We were getting an address-based emission for loadable types,
if the result of a LoadExpr was explicit-copied. This emission
had extra hidden copies that could not be silenced.
ManualOwnership effectively subsumes @_noImplicitCopy,
by diagnosing all implicit copies in a function.
These wrappers are detected by the move checking passes,
to support the implicit no-implicit-copy check for
parameters with ownership specifiers.

ManualOwnership already does this kind of checking, and the
two passes can interfere with each other, such as intercepting
diagnostics that are meant to be emitted by ManualOwnership.
@kavon
Copy link
Member Author

kavon commented Sep 24, 2025

@swift-ci smoke test

@kavon
Copy link
Member Author

kavon commented Sep 25, 2025

@swift-ci smoke test windows

@kavon kavon merged commit da49663 into swiftlang:main Sep 25, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant