Skip to content

Commit fda52b8

Browse files
committed
Simplify a provider definition.
1 parent 016a709 commit fda52b8

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_mir_transform/src

1 file changed

+1
-1
lines changed

compiler/rustc_mir_transform/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ pub fn provide(providers: &mut Providers) {
127127
mir_coroutine_witnesses: coroutine::mir_coroutine_witnesses,
128128
optimized_mir,
129129
is_mir_available,
130-
is_ctfe_mir_available: |tcx, did| is_mir_available(tcx, did),
130+
is_ctfe_mir_available: is_mir_available,
131131
mir_callgraph_reachable: inline::cycle::mir_callgraph_reachable,
132132
mir_inliner_callees: inline::cycle::mir_inliner_callees,
133133
promoted_mir,

0 commit comments

Comments
 (0)