Simplify a provider definition.

This commit is contained in:
Nicholas Nethercote 2024-08-28 08:18:30 +10:00
parent 016a709b24
commit fda52b8f63

View File

@ -127,7 +127,7 @@ pub fn provide(providers: &mut Providers) {
mir_coroutine_witnesses: coroutine::mir_coroutine_witnesses, mir_coroutine_witnesses: coroutine::mir_coroutine_witnesses,
optimized_mir, optimized_mir,
is_mir_available, is_mir_available,
is_ctfe_mir_available: |tcx, did| is_mir_available(tcx, did), is_ctfe_mir_available: is_mir_available,
mir_callgraph_reachable: inline::cycle::mir_callgraph_reachable, mir_callgraph_reachable: inline::cycle::mir_callgraph_reachable,
mir_inliner_callees: inline::cycle::mir_inliner_callees, mir_inliner_callees: inline::cycle::mir_inliner_callees,
promoted_mir, promoted_mir,