Skip to content

Commit

Permalink
vk/prelude: Drop upstream-fixed Self:: doc workaround (#648)
Browse files Browse the repository at this point in the history
The report at rust-lang/rust#93205 was closed
as it has presumably been fixed in
rust-lang/rust#93805 which has long trickled
down into stable releases, and I cannot reproduce the issue on `1.62.1`
anymore (latest stable as of writing) 🎉

This workaround was originally added in #559.
  • Loading branch information
MarijnS95 committed Aug 12, 2022
1 parent f05097d commit 571ce79
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ash/src/vk/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ impl Packed24_8 {
}
}

// Intradoc `Self::` links refuse to resolve if `ColorComponentFlags`
// isn't directly in scope: https://github.com/rust-lang/rust/issues/93205
use vk::ColorComponentFlags;

impl ColorComponentFlags {
impl vk::ColorComponentFlags {
/// Contraction of [`R`][Self::R] | [`G`][Self::G] | [`B`][Self::B] | [`A`][Self::A]
pub const RGBA: Self = Self(Self::R.0 | Self::G.0 | Self::B.0 | Self::A.0);
}
Expand Down

0 comments on commit 571ce79

Please sign in to comment.