1
Fork 0

Perform coherence checking per impl.

This commit is contained in:
Camille GILLOT 2021-05-09 20:53:13 +02:00
parent 21e9336fe8
commit 0ff8c65d6f
18 changed files with 258 additions and 291 deletions

View file

@ -906,9 +906,10 @@ rustc_queries! {
/// Checks whether all impls in the crate pass the overlap check, returning
/// which impls fail it. If all impls are correct, the returned slice is empty.
query orphan_check_crate(_: ()) -> &'tcx [LocalDefId] {
desc {
"checking whether the immpl in the this crate follow the orphan rules",
query orphan_check_impl(key: LocalDefId) -> Result<(), ErrorGuaranteed> {
desc { |tcx|
"checking whether impl `{}` follows the orphan rules",
tcx.def_path_str(key.to_def_id()),
}
}