Add sufficiency of declaration to the information accumulation principle (#7179)

Adding to the information accumulation principle instead of creating new
principle #5990.

---------

Co-authored-by: Josh L <josh11b@users.noreply.github.com>
Co-authored-by: Richard Smith <richard@metafoo.co.uk>
This commit is contained in:
josh11b
2026-05-08 22:38:34 +00:00
committed by GitHub
co-authored by Josh L Richard Smith
parent 8d907e857e
commit 9fb0e4a7ae
@@ -79,6 +79,10 @@ especially important to the coherence of generics and templates.
- When an `impl` needs to be resolved, only those `impl` declarations that
appear earlier are considered. However, if a later `impl` declaration would
change the result of any earlier `impl` lookup, the program is invalid.
- Declarations in an API file that are insufficient for use by clients that
import the library require a definition in the API file.
- Where possible, we should make declarations sufficient, so a definition
is not required.
## Exceptions