We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a3e8f7 commit b351c2bCopy full SHA for b351c2b
src/lib.rs
@@ -497,6 +497,11 @@ impl Comparator {
497
}
498
499
impl Prerelease {
500
+ // Work around https://github.com/rust-lang/rust/issues/97933
501
+ #[cfg(doc)]
502
+ pub const EMPTY: Self = "";
503
+
504
+ #[cfg(not(doc))]
505
pub const EMPTY: Self = Prerelease {
506
identifier: Identifier::empty(),
507
};
@@ -515,6 +520,11 @@ impl Prerelease {
515
520
516
521
517
522
impl BuildMetadata {
523
524
525
526
527
518
528
pub const EMPTY: Self = BuildMetadata {
519
529
530
0 commit comments