Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit b5a1aaf

Browse files
committed
Allow Clippy lints in compiler-builtins-smoke-test
Rather than always needing to exclude `cb` when running `cargo clippy`, just disable Clippy for the included module.
1 parent ef3cc6b commit b5a1aaf

File tree

2 files changed

+2
-2
lines changed
  • .github/workflows
  • crates/compiler-builtins-smoke-test/src

2 files changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ jobs:
120120
run: ./ci/download-musl.sh
121121
- run: |
122122
cargo clippy --all \
123-
--exclude cb \
124123
--features libm-test/build-musl,libm-test/test-multiprecision \
125124
--all-targets
126125

crates/compiler-builtins-smoke-test/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
55
#![feature(core_intrinsics)]
66
#![allow(internal_features)]
7-
#![allow(dead_code)]
87
#![no_std]
98

9+
#[allow(dead_code)]
10+
#[allow(clippy::all)] // We don't get `libm`'s list of `allow`s, so just ignore Clippy.
1011
#[path = "../../../src/math/mod.rs"]
1112
pub mod libm;

0 commit comments

Comments
 (0)