diff --git a/crates/oyster_builtin_proc/src/lib.rs b/crates/oyster_builtin_proc/src/lib.rs index baec598..cb0de7d 100644 --- a/crates/oyster_builtin_proc/src/lib.rs +++ b/crates/oyster_builtin_proc/src/lib.rs @@ -1,3 +1,5 @@ +#![deny(unreachable_pub)] + use darling::FromMeta; use proc_macro::TokenStream; use proc_macro2::Span; diff --git a/crates/oyster_lineedit/src/lib.rs b/crates/oyster_lineedit/src/lib.rs index 37efefb..854c159 100644 --- a/crates/oyster_lineedit/src/lib.rs +++ b/crates/oyster_lineedit/src/lib.rs @@ -1,3 +1,5 @@ +#![deny(unreachable_pub)] + use std::io::{self, Write}; pub fn readline(prompt: &str) -> Result { diff --git a/crates/oyster_parser/src/lib.rs b/crates/oyster_parser/src/lib.rs index b0b373f..1d8a525 100644 --- a/crates/oyster_parser/src/lib.rs +++ b/crates/oyster_parser/src/lib.rs @@ -1,3 +1,5 @@ +#![deny(unreachable_pub)] + //! Parser for the oyster shell, the grammar is outlined below, `extras` are allowed everywhere, //! *except* inside `word`. //! `_` means that the rule does not produce an explicit node. diff --git a/crates/oyster_runtime/src/lib.rs b/crates/oyster_runtime/src/lib.rs index 5dd6e61..da4ba41 100644 --- a/crates/oyster_runtime/src/lib.rs +++ b/crates/oyster_runtime/src/lib.rs @@ -1,3 +1,5 @@ +#![deny(unreachable_pub)] + //! The runtime for executing oyster programs. //! Panics when an invalid ast gets passed.