Skip to content

Commit 29542a4

Browse files
committed
fix export and lint warnings
1 parent def52ee commit 29542a4

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

turbopack/crates/turbo-tasks-backend/fuzz/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ path = "afl_targets/graph.rs"
3232
test = false
3333
doc = false
3434
bench = false
35+
36+
37+
[lints]
38+
workspace = true

turbopack/crates/turbo-tasks/src/macro_helpers.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use crate::{
1212
ValueTypeId, Vc, debug::ValueDebugFormatString, task::TaskOutput,
1313
};
1414
pub use crate::{
15+
inventory_submit,
1516
magic_any::MagicAny,
1617
manager::{find_cell_by_type, notify_scheduled_tasks, spawn_detached_for_testing},
1718
native_function::{
@@ -189,10 +190,12 @@ pub fn register_trait_methods(value: &mut ValueType) {
189190
/// attribute to the item. This is to avoid warnings about unused items when using Rust Analyzer.
190191
#[macro_export]
191192
macro_rules! inventory_submit {
192-
($($item:tt),*) => {
193+
($($item:tt)*) => {
193194
#[cfg(not(rust_analyzer))]
194-
{
195-
::inventory::submit! { $($item),* }
196-
}
195+
$crate::macro_helpers::inventory_submit_inner! { $($item)* }
197196
}
198197
}
198+
199+
/// Exported so the above macro can reference it.
200+
#[doc(hidden)]
201+
pub use inventory::submit as inventory_submit_inner;

0 commit comments

Comments
 (0)