Cache supertrait outlives of impl header for soundness check

This commit is contained in:
Michael Goulet 2024-08-06 13:33:32 -04:00
parent 60d146580c
commit 79228526bf
4 changed files with 42 additions and 26 deletions

View file

@ -407,6 +407,10 @@ rustc_queries! {
desc { |tcx| "elaborating item assumptions for `{}`", tcx.def_path_str(key) }
}
query impl_super_outlives(key: DefId) -> ty::EarlyBinder<'tcx, ty::Clauses<'tcx>> {
desc { |tcx| "elaborating supertrait outlives for trait of `{}`", tcx.def_path_str(key) }
}
/// Look up all native libraries this crate depends on.
/// These are assembled from the following places:
/// - `extern` blocks (depending on their `link` attributes)