Skip to content

Commit 4fe0f27

Browse files
authored
fix(ci): allow non_local_definitions on false positives (#6790)
1 parent be6d505 commit 4fe0f27

File tree

7 files changed

+17
-3
lines changed

7 files changed

+17
-3
lines changed

crates/ethereum-forks/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
1212
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
1313
)]
14+
// TODO: remove when https://github.com/proptest-rs/proptest/pull/427 is merged
15+
#![allow(unknown_lints, non_local_definitions)]
1416
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
1517

1618
mod forkid;

crates/net/eth-wire/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
1111
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
1212
)]
13+
// TODO: remove when https://github.com/proptest-rs/proptest/pull/427 is merged
14+
#![allow(unknown_lints, non_local_definitions)]
1315
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
1416

1517
pub mod builder;

crates/net/eth-wire/tests/fuzz_roundtrip.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
//! Round-trip encoding fuzzing for the `eth-wire` crate.
22
3+
// TODO: remove when https://github.com/proptest-rs/proptest/pull/427 is merged
4+
#![allow(unknown_lints, non_local_definitions)]
5+
36
use alloy_rlp::{Decodable, Encodable};
47
use serde::Serialize;
58
use std::fmt::Debug;

crates/primitives/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
1313
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
1414
)]
15+
// TODO: remove when https://github.com/proptest-rs/proptest/pull/427 is merged
16+
#![allow(unknown_lints, non_local_definitions)]
1517
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
1618

1719
mod account;

crates/revm/src/processor.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,9 +591,9 @@ mod tests {
591591
Account, Bytecode, Bytes, ChainSpecBuilder, ForkCondition, Signature, StorageKey,
592592
Transaction, TransactionKind, TxEip1559, MAINNET,
593593
};
594-
use reth_provider::{
595-
AccountReader, BlockHashReader, BundleStateWithReceipts, StateRootProvider,
596-
};
594+
#[cfg(feature = "optimism")]
595+
use reth_provider::BundleStateWithReceipts;
596+
use reth_provider::{AccountReader, BlockHashReader, StateRootProvider};
597597
use reth_trie::updates::TrieUpdates;
598598
use revm::{Database, TransitionState};
599599
use std::collections::HashMap;

crates/storage/codecs/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
77
)]
88
#![warn(unused_crate_dependencies)]
9+
// TODO: remove when https://github.com/proptest-rs/proptest/pull/427 is merged
10+
#![allow(unknown_lints, non_local_definitions)]
911
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
1012
#![cfg_attr(not(feature = "std"), no_std)]
1113

crates/storage/db/src/tables/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
//!
1313
//! TODO(onbjerg): Find appropriate format for this...
1414
15+
// TODO: remove when https://github.com/proptest-rs/proptest/pull/427 is merged
16+
#![allow(unknown_lints, non_local_definitions)]
17+
1518
pub mod codecs;
1619
pub mod models;
1720

0 commit comments

Comments
 (0)