From b6101184537b1165cfdd5fc473e04ad4c5b7bffa Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 2 Nov 2020 13:13:32 +0100 Subject: Deny unreachable-pub It's very useful when `pub` is equivalent to "this is crate's public API", let's enforce this! Ideally, we should enforce it for local `cargo test`, and only during CI, but that needs https://github.com/rust-lang/cargo/issues/5034. --- xtask/src/codegen/gen_parser_tests.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'xtask') diff --git a/xtask/src/codegen/gen_parser_tests.rs b/xtask/src/codegen/gen_parser_tests.rs index 19ae949d4..6e4abd10c 100644 --- a/xtask/src/codegen/gen_parser_tests.rs +++ b/xtask/src/codegen/gen_parser_tests.rs @@ -45,15 +45,15 @@ pub fn generate_parser_tests(mode: Mode) -> Result<()> { #[derive(Debug)] struct Test { - pub name: String, - pub text: String, - pub ok: bool, + name: String, + text: String, + ok: bool, } #[derive(Default, Debug)] struct Tests { - pub ok: HashMap, - pub err: HashMap, + ok: HashMap, + err: HashMap, } fn collect_tests(s: &str) -> Vec { -- cgit v1.2.3