Do not project when there are unconstrained impl params
This commit is contained in:
parent
ab3924b298
commit
2d602ea793
26 changed files with 214 additions and 283 deletions
|
@ -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.
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue