Skip to content

Commit

Permalink
if importable_paths exist, the struct is public
Browse files Browse the repository at this point in the history
  • Loading branch information
u9g committed Nov 28, 2023
1 parent f605781 commit 24fe0c9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lints/struct_now_doc_hidden.ron
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ SemverQuery(
baseline {
item {
... on Struct {
visibility_limit @filter(op: "=", value: ["$public"])
importable_path {
path @output @tag
public_api @filter(op: "=", value: ["$true"])
Expand All @@ -22,7 +20,6 @@ SemverQuery(
current {
item {
... on Struct {
visibility_limit @filter(op: "=", value: ["$public"])
struct_name: name @output
importable_path {
Expand All @@ -40,7 +37,6 @@ SemverQuery(
}
}"#,
arguments: {
"public": "public",
"true": true,
},
error_message: "A pub struct is now #[doc(hidden)], removing it from the crate's public API.",
Expand Down

0 comments on commit 24fe0c9

Please sign in to comment.