Remove #![forbid(warnings)]
; reply on Clippy in CI/CD instead.
The newest Rust Nightly is getting stricter about `forbid(warnings)` which breaks the build. Use "deny" instead of "forbid". And only deny when running Clippy in CI/CD, so that when hacking on *ring* we don't have to deal with warnings right away; we now only have to deal with them when we're ready to submit a change to be merged.
This commit is contained in:
parent
1cfafdcab7
commit
b9d7d089d9
18
build.rs
18
build.rs
@ -19,24 +19,6 @@
|
||||
// another for the concrete logging implementation). Instead we use `eprintln!`
|
||||
// to log everything to stderr.
|
||||
|
||||
#![forbid(
|
||||
anonymous_parameters,
|
||||
box_pointers,
|
||||
missing_copy_implementations,
|
||||
missing_debug_implementations,
|
||||
missing_docs,
|
||||
trivial_casts,
|
||||
trivial_numeric_casts,
|
||||
unsafe_code,
|
||||
unstable_features,
|
||||
unused_extern_crates,
|
||||
unused_import_braces,
|
||||
unused_qualifications,
|
||||
unused_results,
|
||||
variant_size_differences,
|
||||
warnings
|
||||
)]
|
||||
|
||||
// In the `pregenerate_asm_main()` case we don't want to access (Cargo)
|
||||
// environment variables at all, so avoid `use std::env` here.
|
||||
|
||||
|
11
src/lib.rs
11
src/lib.rs
@ -70,16 +70,7 @@
|
||||
// `#[derive(...)]` uses `trivial_numeric_casts` and `unused_qualifications`
|
||||
// internally.
|
||||
#![deny(missing_docs, unused_qualifications, variant_size_differences)]
|
||||
#![forbid(
|
||||
anonymous_parameters,
|
||||
trivial_casts,
|
||||
trivial_numeric_casts,
|
||||
unstable_features,
|
||||
unused_extern_crates,
|
||||
unused_import_braces,
|
||||
unused_results,
|
||||
warnings
|
||||
)]
|
||||
#![forbid(unused_results)]
|
||||
#![no_std]
|
||||
|
||||
#[cfg(feature = "alloc")]
|
||||
|
@ -13,23 +13,6 @@
|
||||
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
#![cfg(any(not(target_arch = "wasm32"), feature = "wasm32_c"))]
|
||||
#![forbid(
|
||||
anonymous_parameters,
|
||||
box_pointers,
|
||||
missing_copy_implementations,
|
||||
missing_debug_implementations,
|
||||
missing_docs,
|
||||
trivial_casts,
|
||||
trivial_numeric_casts,
|
||||
unsafe_code,
|
||||
unstable_features,
|
||||
unused_extern_crates,
|
||||
unused_import_braces,
|
||||
unused_qualifications,
|
||||
unused_results,
|
||||
variant_size_differences,
|
||||
warnings
|
||||
)]
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
use wasm_bindgen_test::{wasm_bindgen_test, wasm_bindgen_test_configure};
|
||||
|
@ -12,24 +12,6 @@
|
||||
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
#![forbid(
|
||||
anonymous_parameters,
|
||||
box_pointers,
|
||||
missing_copy_implementations,
|
||||
missing_debug_implementations,
|
||||
missing_docs,
|
||||
trivial_casts,
|
||||
trivial_numeric_casts,
|
||||
unsafe_code,
|
||||
unstable_features,
|
||||
unused_extern_crates,
|
||||
unused_import_braces,
|
||||
unused_qualifications,
|
||||
unused_results,
|
||||
variant_size_differences,
|
||||
warnings
|
||||
)]
|
||||
|
||||
extern crate alloc;
|
||||
|
||||
use ring::{agreement, error, rand, test, test_file};
|
||||
|
@ -12,24 +12,6 @@
|
||||
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
#![forbid(
|
||||
anonymous_parameters,
|
||||
box_pointers,
|
||||
missing_copy_implementations,
|
||||
missing_debug_implementations,
|
||||
missing_docs,
|
||||
trivial_casts,
|
||||
trivial_numeric_casts,
|
||||
unsafe_code,
|
||||
unstable_features,
|
||||
unused_extern_crates,
|
||||
unused_import_braces,
|
||||
unused_qualifications,
|
||||
unused_results,
|
||||
variant_size_differences,
|
||||
warnings
|
||||
)]
|
||||
|
||||
use ring::{digest, test, test_file};
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
|
@ -12,24 +12,6 @@
|
||||
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
#![forbid(
|
||||
anonymous_parameters,
|
||||
box_pointers,
|
||||
missing_copy_implementations,
|
||||
missing_debug_implementations,
|
||||
missing_docs,
|
||||
trivial_casts,
|
||||
trivial_numeric_casts,
|
||||
unsafe_code,
|
||||
unstable_features,
|
||||
unused_extern_crates,
|
||||
unused_import_braces,
|
||||
unused_qualifications,
|
||||
unused_results,
|
||||
variant_size_differences,
|
||||
warnings
|
||||
)]
|
||||
|
||||
use ring::{
|
||||
rand,
|
||||
signature::{self, KeyPair},
|
||||
|
@ -12,24 +12,6 @@
|
||||
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
#![forbid(
|
||||
anonymous_parameters,
|
||||
box_pointers,
|
||||
missing_copy_implementations,
|
||||
missing_debug_implementations,
|
||||
missing_docs,
|
||||
trivial_casts,
|
||||
trivial_numeric_casts,
|
||||
unsafe_code,
|
||||
unstable_features,
|
||||
unused_extern_crates,
|
||||
unused_import_braces,
|
||||
unused_qualifications,
|
||||
unused_results,
|
||||
variant_size_differences,
|
||||
warnings
|
||||
)]
|
||||
|
||||
use ring::{
|
||||
signature::{self, Ed25519KeyPair, KeyPair},
|
||||
test, test_file,
|
||||
|
@ -12,23 +12,6 @@
|
||||
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
#![forbid(
|
||||
anonymous_parameters,
|
||||
box_pointers,
|
||||
missing_copy_implementations,
|
||||
missing_debug_implementations,
|
||||
missing_docs,
|
||||
trivial_casts,
|
||||
trivial_numeric_casts,
|
||||
unsafe_code,
|
||||
unstable_features,
|
||||
unused_extern_crates,
|
||||
unused_import_braces,
|
||||
unused_results,
|
||||
variant_size_differences,
|
||||
warnings
|
||||
)]
|
||||
|
||||
use ring::{digest, error, hkdf, test, test_file};
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
|
@ -12,24 +12,6 @@
|
||||
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
#![forbid(
|
||||
anonymous_parameters,
|
||||
box_pointers,
|
||||
missing_copy_implementations,
|
||||
missing_debug_implementations,
|
||||
missing_docs,
|
||||
trivial_casts,
|
||||
trivial_numeric_casts,
|
||||
unsafe_code,
|
||||
unstable_features,
|
||||
unused_extern_crates,
|
||||
unused_import_braces,
|
||||
unused_qualifications,
|
||||
unused_results,
|
||||
variant_size_differences,
|
||||
warnings
|
||||
)]
|
||||
|
||||
use ring::{digest, error, hmac, test, test_file};
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
|
@ -12,24 +12,6 @@
|
||||
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
#![forbid(
|
||||
anonymous_parameters,
|
||||
box_pointers,
|
||||
missing_copy_implementations,
|
||||
missing_debug_implementations,
|
||||
missing_docs,
|
||||
trivial_casts,
|
||||
trivial_numeric_casts,
|
||||
unsafe_code,
|
||||
unstable_features,
|
||||
unused_extern_crates,
|
||||
unused_import_braces,
|
||||
unused_qualifications,
|
||||
unused_results,
|
||||
variant_size_differences,
|
||||
warnings
|
||||
)]
|
||||
|
||||
use core::num::NonZeroU32;
|
||||
use ring::{digest, error, pbkdf2, test, test_file};
|
||||
|
||||
|
@ -12,24 +12,6 @@
|
||||
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
#![forbid(
|
||||
anonymous_parameters,
|
||||
box_pointers,
|
||||
missing_copy_implementations,
|
||||
missing_debug_implementations,
|
||||
missing_docs,
|
||||
trivial_casts,
|
||||
trivial_numeric_casts,
|
||||
unsafe_code,
|
||||
unstable_features,
|
||||
unused_extern_crates,
|
||||
unused_import_braces,
|
||||
unused_qualifications,
|
||||
unused_results,
|
||||
variant_size_differences,
|
||||
warnings
|
||||
)]
|
||||
|
||||
use ring::{aead::quic, test, test_file};
|
||||
|
||||
#[test]
|
||||
|
@ -12,24 +12,6 @@
|
||||
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
#![forbid(
|
||||
anonymous_parameters,
|
||||
box_pointers,
|
||||
missing_copy_implementations,
|
||||
missing_debug_implementations,
|
||||
missing_docs,
|
||||
trivial_casts,
|
||||
trivial_numeric_casts,
|
||||
unsafe_code,
|
||||
unstable_features,
|
||||
unused_extern_crates,
|
||||
unused_import_braces,
|
||||
unused_qualifications,
|
||||
unused_results,
|
||||
variant_size_differences,
|
||||
warnings
|
||||
)]
|
||||
|
||||
#[cfg(feature = "alloc")]
|
||||
use ring::{
|
||||
error,
|
||||
|
Loading…
x
Reference in New Issue
Block a user