1
Fork 0

Do not project when there are unconstrained impl params

This commit is contained in:
Michael Goulet 2025-01-03 05:01:14 +00:00
parent ab3924b298
commit 2d602ea793
26 changed files with 214 additions and 283 deletions

View file

@ -1719,6 +1719,11 @@ rustc_queries! {
ensure_forwards_result_if_red
}
query enforce_impl_non_lifetime_params_are_constrained(key: LocalDefId) -> Result<(), ErrorGuaranteed> {
desc { |tcx| "checking that `{}`'s generics are constrained by the impl header", tcx.def_path_str(key) }
ensure_forwards_result_if_red
}
// The `DefId`s of all non-generic functions and statics in the given crate
// that can be reached from outside the crate.
//