Skip to content

Commit

Permalink
docs(data-structures): enable lint warnings on missing docs, and add …
Browse files Browse the repository at this point in the history
…missing doc comments (#6612)

Part of oxc-project/backlog#130
  • Loading branch information
DonIsaac committed Oct 15, 2024
1 parent 335b7f2 commit de22b81
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions crates/oxc_data_structures/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
//! Data structures used across other oxc crates.
#![warn(missing_docs)]
pub mod stack;
5 changes: 5 additions & 0 deletions crates/oxc_data_structures/src/stack/mod.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_span/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! Source positions and related helper functions.
//!
//! <https://doc.rust-lang.org/beta/nightly-rustc/rustc_span>
#![warn(missing_docs)]
mod atom;
mod compact_str;
Expand Down

0 comments on commit de22b81

Please sign in to comment.