diff --git a/test_crates/struct_now_doc_hidden/new/src/lib.rs b/test_crates/struct_now_doc_hidden/new/src/lib.rs index 3f023cd5..069ae391 100644 --- a/test_crates/struct_now_doc_hidden/new/src/lib.rs +++ b/test_crates/struct_now_doc_hidden/new/src/lib.rs @@ -45,3 +45,6 @@ pub struct PublicStructHiddenField { #[doc(hidden)] pub my_field: i8, } + +#[doc(hidden)] +struct PublicStructThatGoesPrivate; diff --git a/test_crates/struct_now_doc_hidden/old/src/lib.rs b/test_crates/struct_now_doc_hidden/old/src/lib.rs index c93c032d..f39a217f 100644 --- a/test_crates/struct_now_doc_hidden/old/src/lib.rs +++ b/test_crates/struct_now_doc_hidden/old/src/lib.rs @@ -25,3 +25,5 @@ pub mod MyNestedPublicMod { pub struct MyStruct; } } + +pub struct PublicStructThatGoesPrivate; diff --git a/test_outputs/struct_missing.output.ron b/test_outputs/struct_missing.output.ron index 2641ab26..87652937 100644 --- a/test_outputs/struct_missing.output.ron +++ b/test_outputs/struct_missing.output.ron @@ -84,6 +84,19 @@ "visibility_limit": String("public"), }, ], + "./test_crates/struct_now_doc_hidden/": [ + { + "name": String("PublicStructThatGoesPrivate"), + "path": List([ + String("struct_now_doc_hidden"), + String("PublicStructThatGoesPrivate"), + ]), + "span_begin_line": Uint64(29), + "span_filename": String("src/lib.rs"), + "struct_type": String("unit"), + "visibility_limit": String("public"), + }, + ], "./test_crates/struct_pub_field_missing/": [ { "name": String("StructRemoved"),