Skip to content

Commit

Permalink
fix(script_plugins): LintStore::register_late_pass now passes an ex…
Browse files Browse the repository at this point in the history
…tra arg to a given closure

<rust-lang/rust#101501>
  • Loading branch information
yvt committed Oct 16, 2022
1 parent 2f4f3f0 commit 66c03e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/script_plugins/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn registrar(reg: &mut Registry) {
let symbols = Symbols::new();
reg.lint_store.register_lints(&[&UNROOTED_MUST_ROOT]);
reg.lint_store
.register_late_pass(move || Box::new(UnrootedPass::new(symbols.clone())));
.register_late_pass(move |_| Box::new(UnrootedPass::new(symbols.clone())));
}

declare_lint!(
Expand Down

0 comments on commit 66c03e3

Please sign in to comment.