summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml2
-rw-r--r--cli/main.rs2
-rw-r--r--cli/main_runtime.rs2
-rw-r--r--cli/tests/integration_tests.rs3
-rw-r--r--core/runtime.rs11
-rw-r--r--op_crates/crypto/lib.rs2
-rw-r--r--op_crates/fetch/lib.rs2
-rw-r--r--op_crates/webgpu/lib.rs2
-rw-r--r--runtime/lib.rs2
9 files changed, 3 insertions, 25 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2ce2176c8..b1adaab25 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -48,6 +48,8 @@ jobs:
env:
RUST_BACKTRACE: full
CARGO_TERM_COLOR: always
+ # TODO(ry) Enable error on warning after fixing https://github.com/denoland/deno/issues/10378
+ # RUSTFLAGS: -D warnings
steps:
- name: Configure git
diff --git a/cli/main.rs b/cli/main.rs
index 38e67f46a..319811460 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -1,7 +1,5 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
-#![deny(warnings)]
-
mod ast;
mod auth_tokens;
mod checksum;
diff --git a/cli/main_runtime.rs b/cli/main_runtime.rs
index 23f1c23b6..83c74ceaa 100644
--- a/cli/main_runtime.rs
+++ b/cli/main_runtime.rs
@@ -1,7 +1,5 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
-#![deny(warnings)]
-
mod colors;
mod standalone;
mod tokio_util;
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 770e87244..50c70213a 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -5384,8 +5384,7 @@ console.log("finish");
.wait_with_output()
.unwrap();
assert!(output.status.success());
- let exists = std::path::Path::new(&exe).exists();
- assert!(exists, true);
+ assert!(std::path::Path::new(&exe).exists());
}
#[test]
diff --git a/core/runtime.rs b/core/runtime.rs
index 7475c7020..da7d6598a 100644
--- a/core/runtime.rs
+++ b/core/runtime.rs
@@ -1495,7 +1495,6 @@ pub mod tests {
enum Mode {
Async,
- AsyncUnref,
AsyncZeroCopy(bool),
}
@@ -1520,16 +1519,6 @@ pub mod tests {
let resp = (0, serialize_op_result(Ok(43), rc_op_state));
Op::Async(Box::pin(futures::future::ready(resp)))
}
- Mode::AsyncUnref => {
- let control: u8 = payload.deserialize().unwrap();
- assert_eq!(control, 42);
- let fut = async {
- // This future never finish.
- futures::future::pending::<()>().await;
- (0, serialize_op_result(Ok(43), rc_op_state))
- };
- Op::AsyncUnref(Box::pin(fut))
- }
Mode::AsyncZeroCopy(has_buffer) => {
assert_eq!(buf.is_some(), has_buffer);
if let Some(buf) = buf {
diff --git a/op_crates/crypto/lib.rs b/op_crates/crypto/lib.rs
index c74b1b2c2..8b4d34a7c 100644
--- a/op_crates/crypto/lib.rs
+++ b/op_crates/crypto/lib.rs
@@ -1,7 +1,5 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
-#![deny(warnings)]
-
use deno_core::error::null_opbuf;
use deno_core::error::AnyError;
use deno_core::JsRuntime;
diff --git a/op_crates/fetch/lib.rs b/op_crates/fetch/lib.rs
index 41fb153e0..ad96dea46 100644
--- a/op_crates/fetch/lib.rs
+++ b/op_crates/fetch/lib.rs
@@ -1,7 +1,5 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
-#![deny(warnings)]
-
use deno_core::error::bad_resource_id;
use deno_core::error::generic_error;
use deno_core::error::null_opbuf;
diff --git a/op_crates/webgpu/lib.rs b/op_crates/webgpu/lib.rs
index 0dd18ca8e..62ec08ce7 100644
--- a/op_crates/webgpu/lib.rs
+++ b/op_crates/webgpu/lib.rs
@@ -1,7 +1,5 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
-#![deny(warnings)]
-
use deno_core::error::AnyError;
use deno_core::error::{bad_resource_id, not_supported};
use deno_core::OpState;
diff --git a/runtime/lib.rs b/runtime/lib.rs
index b45010c4d..0068b9a93 100644
--- a/runtime/lib.rs
+++ b/runtime/lib.rs
@@ -1,7 +1,5 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
-#![deny(warnings)]
-
pub use deno_console;
pub use deno_crypto;
pub use deno_fetch;