Skip to content

Commit

Permalink
Remove workaround for rustdoc displaying private fields
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 18, 2022
1 parent e3439b9 commit ef3c81e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ doc-scrape-examples = false

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = ["--cfg", "doc_cfg", "--cfg", "semver_rustdoc_workaround"]
rustdoc-args = ["--cfg", "doc_cfg"]
10 changes: 0 additions & 10 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -497,11 +497,6 @@ impl Comparator {
}

impl Prerelease {
// Work around https://github.com/rust-lang/rust/issues/97933
#[cfg(all(doc, semver_rustdoc_workaround))]
pub const EMPTY: Self = "";

#[cfg(not(all(doc, semver_rustdoc_workaround)))]
pub const EMPTY: Self = Prerelease {
identifier: Identifier::empty(),
};
Expand All @@ -520,11 +515,6 @@ impl Prerelease {
}

impl BuildMetadata {
// Work around https://github.com/rust-lang/rust/issues/97933
#[cfg(all(doc, semver_rustdoc_workaround))]
pub const EMPTY: Self = "";

#[cfg(not(all(doc, semver_rustdoc_workaround)))]
pub const EMPTY: Self = BuildMetadata {
identifier: Identifier::empty(),
};
Expand Down

0 comments on commit ef3c81e

Please sign in to comment.