rustdoc: handle cross-crate RPITITs correctly

This commit is contained in:
León Orell Valerian Liehr 2023-07-22 12:20:17 +02:00
parent c3c5a5c5f7
commit 5924043b86
No known key found for this signature in database
GPG key ID: D17A07215F68E713
7 changed files with 84 additions and 8 deletions

View file

@ -2081,9 +2081,9 @@ rustc_queries! {
}
}
query is_impossible_method(key: (DefId, DefId)) -> bool {
query is_impossible_associated_item(key: (DefId, DefId)) -> bool {
desc { |tcx|
"checking if `{}` is impossible to call within `{}`",
"checking if `{}` is impossible to reference within `{}`",
tcx.def_path_str(key.1),
tcx.def_path_str(key.0),
}