Expand description
This module contains methods that assist in checking that impls are general enough, i.e. that they always apply to every valid instantaiton of the ADT theyโre implemented for.
This is necessary for Drop and negative impls to be well-formed.
Functionsยง
- check_
drop_ ๐impl - This function confirms that the
Dropimplementation identified bydrop_impl_didis not any more specialized than the type it is attached to (Issue #8142). - check_
negative_ ๐auto_ trait_ impl - ensure_
all_ ๐fields_ are_ const_ destruct - ensure_
impl_ ๐params_ and_ item_ params_ correspond - ensure_
impl_ ๐predicates_ are_ implied_ by_ item_ defn - Confirms that all predicates defined on the
Dropimpl (drop_impl_def_id) are able to be proven from withinadt_def_idโs environment. I.e. all the predicates on the impl are implied by the ADT being well formed.