Enable more compliler lints.

This commit is contained in:
Dan Gohman
2018-02-23 22:27:52 -08:00
parent 1cf9a8d669
commit b9f51d7850
6 changed files with 18 additions and 6 deletions

View File

@@ -1,6 +1,8 @@
//! Cretonne code generation library.
#![deny(missing_docs)]
#![deny(missing_docs,
trivial_numeric_casts,
unused_extern_crates)]
pub use context::Context;
pub use legalizer::legalize_function;

View File

@@ -236,7 +236,9 @@
//! This will match `"one, two"` , but not `"one,two"`. Without the `$()`, trailing whitespace
//! would be trimmed from the pattern.
#![deny(missing_docs)]
#![deny(missing_docs,
trivial_numeric_casts,
unused_extern_crates)]
pub use error::{Error, Result};
pub use variable::{VariableMap, Value, NO_VARIABLES};

View File

@@ -142,7 +142,9 @@
//! }
//! ```
#![deny(missing_docs)]
#![deny(missing_docs,
trivial_numeric_casts,
unused_extern_crates)]
extern crate cretonne;

View File

@@ -1,7 +1,9 @@
//! Performs autodetection of the host for the purposes of running
//! Cretonne to generate code to run on the same machine.
#![deny(missing_docs)]
#![deny(missing_docs,
trivial_numeric_casts,
unused_extern_crates)]
extern crate cretonne;

View File

@@ -3,7 +3,9 @@
//! The cton_reader library supports reading .cton files. This functionality is needed for testing
//! Cretonne, but is not essential for a JIT compiler.
#![deny(missing_docs)]
#![deny(missing_docs,
trivial_numeric_casts,
unused_extern_crates)]
extern crate cretonne;

View File

@@ -9,7 +9,9 @@
//!
//! The main function of this module is [`translate_module`](fn.translate_module.html).
#![deny(missing_docs)]
#![deny(missing_docs,
trivial_numeric_casts,
unused_extern_crates)]
extern crate wasmparser;
extern crate cton_frontend;