Skip to content

Commit 287c279

Browse files
committed
Fix error for cargo check --workspace --all-targets
This prevents rust-analyzer from showing an error for the panic-handler crate.
1 parent 834bacf commit 287c279

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

crates/panic-handler/Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ authors = ["Alex Crichton <[email protected]>"]
55
edition = "2021"
66
publish = false
77

8+
[lib]
9+
test = false
10+
bench = false
11+
812
[dependencies]

testcrate/tests/addsub.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![allow(unused_macros)]
22
#![cfg_attr(f128_enabled, feature(f128))]
33

4+
#[allow(unused_imports)] // Unused on some archs
45
use testcrate::*;
56

67
macro_rules! float_sum {

0 commit comments

Comments
 (0)