Skip to content

Commit 9aebb59

Browse files
committed
Fix compilation on latest nightly
The ability for plugins to add MIR passes was removed as of 4ca9c97. Luckily, we don't use this feature at all and can safely ignore it. Fixes rust-lang#1618
1 parent b48243c commit 9aebb59

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ impl<'a> CompilerCalls<'a> for ClippyCompilerCalls {
8989
lint_groups,
9090
llvm_passes,
9191
attributes,
92-
mir_passes,
9392
.. } = registry;
9493
let sess = &state.session;
9594
let mut ls = sess.lint_store.borrow_mut();
@@ -105,7 +104,6 @@ impl<'a> CompilerCalls<'a> for ClippyCompilerCalls {
105104
}
106105

107106
sess.plugin_llvm_passes.borrow_mut().extend(llvm_passes);
108-
sess.mir_passes.borrow_mut().extend(mir_passes);
109107
sess.plugin_attributes.borrow_mut().extend(attributes);
110108
}
111109
old(state);

0 commit comments

Comments
 (0)