Don't document impossible to call default trait items on impls

This commit is contained in:
Michael Goulet 2022-08-07 05:47:32 +00:00
parent d77da9da84
commit b3b23aada9
4 changed files with 114 additions and 1 deletions

View file

@ -1951,6 +1951,14 @@ rustc_queries! {
}
}
query is_impossible_method(key: (DefId, DefId)) -> bool {
desc { |tcx|
"checking if {} is impossible to call within {}",
tcx.def_path_str(key.1),
tcx.def_path_str(key.0),
}
}
query method_autoderef_steps(
goal: CanonicalTyGoal<'tcx>
) -> MethodAutoderefStepsResult<'tcx> {