1
Fork 0

Rollup merge of #133216 - compiler-errors:const-fn, r=lcnr

Implement `~const Fn` trait goal in the new solver

Split out from https://github.com/rust-lang/rust/pull/132329 since this should be easier to review on its own.

r? lcnr
This commit is contained in:
Jacob Pratt 2024-11-20 01:54:27 -05:00 committed by GitHub
commit b9cd5eb190
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 193 additions and 109 deletions

View file

@ -376,7 +376,11 @@ impl<'tcx> Interner for TyCtxt<'tcx> {
self.explicit_implied_predicates_of(def_id).map_bound(|preds| preds.into_iter().copied())
}
fn is_const_impl(self, def_id: DefId) -> bool {
fn impl_is_const(self, def_id: DefId) -> bool {
self.is_conditionally_const(def_id)
}
fn fn_is_const(self, def_id: DefId) -> bool {
self.is_conditionally_const(def_id)
}