mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
remove #![deny(warnings)] (#10376)
Prefer RUSTFLAGS="-D warnings" to prevent warnings, but cannot enable yet due to #10378.
This commit is contained in:
parent
cdd2355f0f
commit
9c3da280e0
9 changed files with 3 additions and 25 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -48,6 +48,8 @@ jobs:
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: full
|
RUST_BACKTRACE: full
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
# TODO(ry) Enable error on warning after fixing https://github.com/denoland/deno/issues/10378
|
||||||
|
# RUSTFLAGS: -D warnings
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Configure git
|
- name: Configure git
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
#![deny(warnings)]
|
|
||||||
|
|
||||||
mod ast;
|
mod ast;
|
||||||
mod auth_tokens;
|
mod auth_tokens;
|
||||||
mod checksum;
|
mod checksum;
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
#![deny(warnings)]
|
|
||||||
|
|
||||||
mod colors;
|
mod colors;
|
||||||
mod standalone;
|
mod standalone;
|
||||||
mod tokio_util;
|
mod tokio_util;
|
||||||
|
|
|
@ -5384,8 +5384,7 @@ console.log("finish");
|
||||||
.wait_with_output()
|
.wait_with_output()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
assert!(output.status.success());
|
assert!(output.status.success());
|
||||||
let exists = std::path::Path::new(&exe).exists();
|
assert!(std::path::Path::new(&exe).exists());
|
||||||
assert!(exists, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -1495,7 +1495,6 @@ pub mod tests {
|
||||||
|
|
||||||
enum Mode {
|
enum Mode {
|
||||||
Async,
|
Async,
|
||||||
AsyncUnref,
|
|
||||||
AsyncZeroCopy(bool),
|
AsyncZeroCopy(bool),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1520,16 +1519,6 @@ pub mod tests {
|
||||||
let resp = (0, serialize_op_result(Ok(43), rc_op_state));
|
let resp = (0, serialize_op_result(Ok(43), rc_op_state));
|
||||||
Op::Async(Box::pin(futures::future::ready(resp)))
|
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) => {
|
Mode::AsyncZeroCopy(has_buffer) => {
|
||||||
assert_eq!(buf.is_some(), has_buffer);
|
assert_eq!(buf.is_some(), has_buffer);
|
||||||
if let Some(buf) = buf {
|
if let Some(buf) = buf {
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
#![deny(warnings)]
|
|
||||||
|
|
||||||
use deno_core::error::null_opbuf;
|
use deno_core::error::null_opbuf;
|
||||||
use deno_core::error::AnyError;
|
use deno_core::error::AnyError;
|
||||||
use deno_core::JsRuntime;
|
use deno_core::JsRuntime;
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
#![deny(warnings)]
|
|
||||||
|
|
||||||
use deno_core::error::bad_resource_id;
|
use deno_core::error::bad_resource_id;
|
||||||
use deno_core::error::generic_error;
|
use deno_core::error::generic_error;
|
||||||
use deno_core::error::null_opbuf;
|
use deno_core::error::null_opbuf;
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
#![deny(warnings)]
|
|
||||||
|
|
||||||
use deno_core::error::AnyError;
|
use deno_core::error::AnyError;
|
||||||
use deno_core::error::{bad_resource_id, not_supported};
|
use deno_core::error::{bad_resource_id, not_supported};
|
||||||
use deno_core::OpState;
|
use deno_core::OpState;
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
#![deny(warnings)]
|
|
||||||
|
|
||||||
pub use deno_console;
|
pub use deno_console;
|
||||||
pub use deno_crypto;
|
pub use deno_crypto;
|
||||||
pub use deno_fetch;
|
pub use deno_fetch;
|
||||||
|
|
Loading…
Add table
Reference in a new issue