diff --git a/crates/oxc_data_structures/src/lib.rs b/crates/oxc_data_structures/src/lib.rs index c93897d0acb76..1a3c20dca0f6c 100644 --- a/crates/oxc_data_structures/src/lib.rs +++ b/crates/oxc_data_structures/src/lib.rs @@ -1 +1,3 @@ +//! Data structures used across other oxc crates. +#![warn(missing_docs)] pub mod stack; diff --git a/crates/oxc_data_structures/src/stack/mod.rs b/crates/oxc_data_structures/src/stack/mod.rs index b030c4899b06c..7c0619018fc86 100644 --- a/crates/oxc_data_structures/src/stack/mod.rs +++ b/crates/oxc_data_structures/src/stack/mod.rs @@ -1,3 +1,8 @@ +//! Contains the following FILO data structures: +//! - [`Stack`]: A growable stack +//! - [`SparseStack`]: A stack that can have empty entries +//! - [`NonEmptyStack`]: A growable stack that can never be empty, allowing for more efficient +//! operations mod capacity; mod common; mod non_empty; diff --git a/crates/oxc_span/src/lib.rs b/crates/oxc_span/src/lib.rs index f7e29d3cc6585..d33fc2e35fc61 100644 --- a/crates/oxc_span/src/lib.rs +++ b/crates/oxc_span/src/lib.rs @@ -1,7 +1,6 @@ //! Source positions and related helper functions. //! //! -#![warn(missing_docs)] mod atom; mod compact_str;