Skip to content

Commit

Permalink
Move unused_import_braces lint to workspace level
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Nov 20, 2023
1 parent 0f88f8a commit eb9e240
Show file tree
Hide file tree
Showing 22 changed files with 1 addition and 23 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ rust-version = "1.72.0"
unused_extern_crates = 'warn'
trivial_numeric_casts = 'warn'
unstable_features = 'warn'
unused_import_braces = 'warn'

[workspace.dependencies]
arbitrary = { version = "1.3.1" }
Expand Down
1 change: 0 additions & 1 deletion cranelift/bforest/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
//! - All the trees in a forest can be cleared in constant time.
#![deny(missing_docs)]
#![warn(unused_import_braces)]
#![no_std]

#[cfg(test)]
Expand Down
1 change: 0 additions & 1 deletion cranelift/codegen/shared/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
//! `cranelift-codegen-meta` libraries.
#![deny(missing_docs)]
#![warn(unused_import_braces)]

pub mod constant_hash;
pub mod constants;
Expand Down
1 change: 0 additions & 1 deletion cranelift/codegen/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//! Cranelift code generation library.
#![deny(missing_docs)]
#![warn(unused_import_braces)]
#![no_std]
// Various bits and pieces of this crate might only be used for one platform or
// another, but it's not really too useful to learn about that all the time. On
Expand Down
1 change: 0 additions & 1 deletion cranelift/entity/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
//! `Vec`.
#![deny(missing_docs)]
#![warn(unused_import_braces)]
#![no_std]

extern crate alloc;
Expand Down
1 change: 0 additions & 1 deletion cranelift/filetests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
//! available filetest commands.
#![deny(missing_docs)]
#![warn(unused_import_braces)]

pub use crate::function_runner::TestFileCompiler;
use crate::runner::TestRunner;
Expand Down
1 change: 0 additions & 1 deletion cranelift/frontend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@
//! ```
#![deny(missing_docs)]
#![warn(unused_import_braces)]
#![no_std]

#[allow(unused_imports)] // #[macro_use] is required for no_std
Expand Down
1 change: 0 additions & 1 deletion cranelift/jit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
//! which shows how to use some of the features of `cranelift_jit`.
#![deny(missing_docs, unreachable_pub)]
#![warn(unused_import_braces)]

mod backend;
mod compiled_blob;
Expand Down
1 change: 0 additions & 1 deletion cranelift/module/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! Top-level lib.rs for `cranelift_module`.
#![deny(missing_docs)]
#![warn(unused_import_braces)]
#![no_std]

#[cfg(not(feature = "std"))]
Expand Down
1 change: 0 additions & 1 deletion cranelift/native/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
//! Cranelift to generate code to run on the same machine.
#![deny(missing_docs)]
#![warn(unused_import_braces)]

use cranelift_codegen::isa;
use cranelift_codegen::settings::Configurable;
Expand Down
1 change: 0 additions & 1 deletion cranelift/object/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
//! This re-exports `object` so you don't have to explicitly keep the versions in sync.
#![deny(missing_docs)]
#![warn(unused_import_braces)]

mod backend;

Expand Down
1 change: 0 additions & 1 deletion cranelift/reader/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
//! testing Cranelift, but is not essential for a JIT compiler.
#![deny(missing_docs)]
#![warn(unused_import_braces)]

pub use crate::error::{Location, ParseError, ParseResult};
pub use crate::isaspec::{parse_option, parse_options, IsaSpec, ParseOptionError};
Expand Down
1 change: 0 additions & 1 deletion cranelift/serde/src/clif-json.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! Utility for `cranelift_serde`.
#![deny(missing_docs)]
#![warn(unused_import_braces)]

use clap::Parser;
use cranelift_codegen::ir::Function;
Expand Down
2 changes: 0 additions & 2 deletions cranelift/src/clif-util.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![warn(unused_import_braces)]

use clap::Parser;
use std::path::PathBuf;

Expand Down
1 change: 0 additions & 1 deletion cranelift/umbrella/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! Cranelift umbrella crate, providing a convenient one-line dependency.
#![deny(missing_docs)]
#![warn(unused_import_braces)]
#![no_std]

/// Provide these crates, renamed to reduce stutter.
Expand Down
1 change: 0 additions & 1 deletion cranelift/wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
//! The main function of this module is [`translate_module`](fn.translate_module.html).
#![deny(missing_docs)]
#![warn(unused_import_braces)]
#![no_std]

#[cfg(not(feature = "std"))]
Expand Down
2 changes: 0 additions & 2 deletions crates/cli-flags/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! Contains the common Wasmtime command line interface (CLI) flags.
#![warn(unused_import_braces)]

use anyhow::Result;
use clap::Parser;
use std::time::Duration;
Expand Down
1 change: 0 additions & 1 deletion crates/environ/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
//! linear memories.
#![deny(missing_docs)]
#![warn(unused_import_braces)]

mod address_map;
mod builtin;
Expand Down
1 change: 0 additions & 1 deletion crates/jit/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! JIT-style runtime for WebAssembly using Cranelift.
#![deny(missing_docs)]
#![warn(unused_import_braces)]

mod code_memory;
mod debug;
Expand Down
1 change: 0 additions & 1 deletion crates/runtime/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! Runtime library support for Wasmtime.
#![deny(missing_docs)]
#![warn(unused_import_braces)]

use anyhow::{Error, Result};
use std::fmt;
Expand Down
1 change: 0 additions & 1 deletion crates/wast/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! Implementation of the WAST text format for wasmtime.
#![deny(missing_docs)]
#![warn(unused_import_braces)]

#[cfg(feature = "component-model")]
mod component;
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
//! This crate implements the Wasmtime command line tools.
#![deny(missing_docs)]
#![warn(unused_import_braces)]

pub mod commands;

Expand Down

0 comments on commit eb9e240

Please sign in to comment.