From a9904187047b06aa8a879ef083acabf2f4834dd8 Mon Sep 17 00:00:00 2001 From: Charlotte Meyer Date: Mon, 7 Nov 2022 12:20:21 +0000 Subject: [PATCH] build: add deny(unreachable_pub) Signed-off-by: Charlotte Meyer --- crates/oyster_builtin_proc/src/lib.rs | 2 ++ crates/oyster_lineedit/src/lib.rs | 2 ++ crates/oyster_parser/src/lib.rs | 2 ++ crates/oyster_runtime/src/lib.rs | 2 ++ 4 files changed, 8 insertions(+) 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.