Vendor dependencies
Let's see how I like this workflow.
This commit is contained in:
parent
34d1830413
commit
9c435dc440
7500 changed files with 1665121 additions and 99 deletions
14
vendor/bitflags/tests/compile-pass/redefinition/core.rs
vendored
Normal file
14
vendor/bitflags/tests/compile-pass/redefinition/core.rs
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
use bitflags::bitflags;
|
||||
|
||||
// Checks for possible errors caused by overriding names used by `bitflags!` internally.
|
||||
|
||||
mod core {}
|
||||
mod _core {}
|
||||
|
||||
bitflags! {
|
||||
struct Test: u8 {
|
||||
const A = 1;
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
19
vendor/bitflags/tests/compile-pass/redefinition/stringify.rs
vendored
Normal file
19
vendor/bitflags/tests/compile-pass/redefinition/stringify.rs
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
use bitflags::bitflags;
|
||||
|
||||
// Checks for possible errors caused by overriding names used by `bitflags!` internally.
|
||||
|
||||
#[allow(unused_macros)]
|
||||
macro_rules! stringify {
|
||||
($($t:tt)*) => { "..." };
|
||||
}
|
||||
|
||||
bitflags! {
|
||||
struct Test: u8 {
|
||||
const A = 1;
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
// Just make sure we don't call the redefined `stringify` macro
|
||||
assert_eq!(format!("{:?}", Test::A), "A");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue