about summary refs log tree commit diff
path: root/library
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2024-10-26 00:54:26 -0500
committerTrevor Gross <tmgross@umich.edu>2024-10-26 00:54:26 -0500
commit79bf4fe1f2f527563969276e723511366efaf046 (patch)
tree29dedd2f47d1aaf3999d2180b11ed1ceabaa5472 /library
parentbfd37cae5d5d5761f01b38296f0fea8982a3c277 (diff)
downloadrust-79bf4fe1f2f527563969276e723511366efaf046.tar.gz
rust-79bf4fe1f2f527563969276e723511366efaf046.zip
Don't deny warnings in lib.rs
Having `#![deny(warnings)]` for the entire crate is a bit of a
development annoyance. We already run CI with `RUSTFLAGS=-Dwarnings` so
there isn't much of a reason to check this locally. Thus, remove the
attribute.

Additionally, sort the clippy allows.
Diffstat (limited to 'library')
-rw-r--r--library/compiler-builtins/libm/src/lib.rs15
1 files changed, 7 insertions, 8 deletions
diff --git a/library/compiler-builtins/libm/src/lib.rs b/library/compiler-builtins/libm/src/lib.rs
index 23885ecf8da..04f4ac0f2e1 100644
--- a/library/compiler-builtins/libm/src/lib.rs
+++ b/library/compiler-builtins/libm/src/lib.rs
@@ -1,17 +1,16 @@
 //! libm in pure Rust
-#![deny(warnings)]
 #![no_std]
 #![cfg_attr(feature = "unstable", allow(internal_features))]
 #![cfg_attr(feature = "unstable", feature(core_intrinsics))]
-#![allow(clippy::unreadable_literal)]
-#![allow(clippy::many_single_char_names)]
-#![allow(clippy::needless_return)]
-#![allow(clippy::int_plus_one)]
+#![allow(clippy::assign_op_pattern)]
 #![allow(clippy::deprecated_cfg_attr)]
-#![allow(clippy::mixed_case_hex_literals)]
-#![allow(clippy::float_cmp)]
 #![allow(clippy::eq_op)]
-#![allow(clippy::assign_op_pattern)]
+#![allow(clippy::float_cmp)]
+#![allow(clippy::int_plus_one)]
+#![allow(clippy::many_single_char_names)]
+#![allow(clippy::mixed_case_hex_literals)]
+#![allow(clippy::needless_return)]
+#![allow(clippy::unreadable_literal)]
 
 mod libm_helper;
 mod math;