Enable more compliler lints.
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
//! Cretonne code generation library.
|
//! Cretonne code generation library.
|
||||||
|
|
||||||
#![deny(missing_docs)]
|
#![deny(missing_docs,
|
||||||
|
trivial_numeric_casts,
|
||||||
|
unused_extern_crates)]
|
||||||
|
|
||||||
pub use context::Context;
|
pub use context::Context;
|
||||||
pub use legalizer::legalize_function;
|
pub use legalizer::legalize_function;
|
||||||
|
|||||||
@@ -236,7 +236,9 @@
|
|||||||
//! This will match `"one, two"` , but not `"one,two"`. Without the `$()`, trailing whitespace
|
//! This will match `"one, two"` , but not `"one,two"`. Without the `$()`, trailing whitespace
|
||||||
//! would be trimmed from the pattern.
|
//! 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 error::{Error, Result};
|
||||||
pub use variable::{VariableMap, Value, NO_VARIABLES};
|
pub use variable::{VariableMap, Value, NO_VARIABLES};
|
||||||
|
|||||||
@@ -142,7 +142,9 @@
|
|||||||
//! }
|
//! }
|
||||||
//! ```
|
//! ```
|
||||||
|
|
||||||
#![deny(missing_docs)]
|
#![deny(missing_docs,
|
||||||
|
trivial_numeric_casts,
|
||||||
|
unused_extern_crates)]
|
||||||
|
|
||||||
extern crate cretonne;
|
extern crate cretonne;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
//! Performs autodetection of the host for the purposes of running
|
//! Performs autodetection of the host for the purposes of running
|
||||||
//! Cretonne to generate code to run on the same machine.
|
//! 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;
|
extern crate cretonne;
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,9 @@
|
|||||||
//! The cton_reader library supports reading .cton files. This functionality is needed for testing
|
//! The cton_reader library supports reading .cton files. This functionality is needed for testing
|
||||||
//! Cretonne, but is not essential for a JIT compiler.
|
//! Cretonne, but is not essential for a JIT compiler.
|
||||||
|
|
||||||
#![deny(missing_docs)]
|
#![deny(missing_docs,
|
||||||
|
trivial_numeric_casts,
|
||||||
|
unused_extern_crates)]
|
||||||
|
|
||||||
extern crate cretonne;
|
extern crate cretonne;
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,9 @@
|
|||||||
//!
|
//!
|
||||||
//! The main function of this module is [`translate_module`](fn.translate_module.html).
|
//! 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 wasmparser;
|
||||||
extern crate cton_frontend;
|
extern crate cton_frontend;
|
||||||
|
|||||||
Reference in New Issue
Block a user