From 7c2abb9d579d13fa61339c24f8c39bc3c27c25db Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 3 Nov 2021 09:27:36 -0400 Subject: fix: Deno.emit crashes with BorrowMutError (#12627) Warn on await_holding_refcell_ref clippy rule to avoid this in the future. Fixes #12453 --- tools/lint.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tools/lint.js') diff --git a/tools/lint.js b/tools/lint.js index 03339bcbe..bcb181e29 100755 --- a/tools/lint.js +++ b/tools/lint.js @@ -109,7 +109,14 @@ async function clippy() { } const p = Deno.run({ - cmd: [...cmd, "--", "-D", "clippy::all"], + cmd: [ + ...cmd, + "--", + "-D", + "clippy::all", + "-D", + "clippy::await_holding_refcell_ref", + ], }); const { success } = await p.status(); if (!success) { -- cgit v1.2.3