RPM build fix (reverted CI changes which will need to be un-reverted or made conditional) and vendor Rust dependencies to make builds much faster in any CI system.
This commit is contained in:
11
zeroidc/vendor/bitflags/tests/compile-pass/visibility/bits_field.rs
vendored
Normal file
11
zeroidc/vendor/bitflags/tests/compile-pass/visibility/bits_field.rs
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
use bitflags::bitflags;
|
||||
|
||||
bitflags! {
|
||||
pub struct Flags1: u32 {
|
||||
const FLAG_A = 0b00000001;
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
assert_eq!(0b00000001, Flags1::FLAG_A.bits);
|
||||
}
|
||||
19
zeroidc/vendor/bitflags/tests/compile-pass/visibility/pub_in.rs
vendored
Normal file
19
zeroidc/vendor/bitflags/tests/compile-pass/visibility/pub_in.rs
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
mod a {
|
||||
mod b {
|
||||
use bitflags::bitflags;
|
||||
|
||||
bitflags! {
|
||||
pub(in crate::a) struct Flags: u32 {
|
||||
const FLAG_A = 0b00000001;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn flags() -> u32 {
|
||||
b::Flags::FLAG_A.bits()
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
assert_eq!(0b00000001, a::flags());
|
||||
}
|
||||
Reference in New Issue
Block a user