Skip to content

Commit

Permalink
Merge pull request #295 from dtolnay/rustdocworkaround
Browse files Browse the repository at this point in the history
Remove workaround for rustdoc displaying private fields
  • Loading branch information
dtolnay authored Dec 18, 2022
2 parents e3439b9 + ef3c81e commit aa2c527
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 aa2c527

Please sign in to comment.