Implement type inference for inline consts
In most cases it is handled in the same way as closures.
This commit is contained in:
parent
02c1774cd3
commit
468192a9c5
18 changed files with 299 additions and 43 deletions
|
@ -797,7 +797,7 @@ rustc_queries! {
|
|||
/// additional requirements that the closure's creator must verify.
|
||||
query mir_borrowck(key: LocalDefId) -> &'tcx mir::BorrowCheckResult<'tcx> {
|
||||
desc { |tcx| "borrow-checking `{}`", tcx.def_path_str(key.to_def_id()) }
|
||||
cache_on_disk_if(tcx) { tcx.is_closure(key.to_def_id()) }
|
||||
cache_on_disk_if(tcx) { tcx.is_closure_or_inline_const(key.to_def_id()) }
|
||||
}
|
||||
query mir_borrowck_const_arg(key: (LocalDefId, DefId)) -> &'tcx mir::BorrowCheckResult<'tcx> {
|
||||
desc {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue